pihole-docker/README.md

46 lines
819 B
Markdown
Raw Permalink Normal View History

2024-02-11 13:05:57 +01:00
# pihole-docker
This is a simple [Pi-hole](https://pi-hole.net) docker setup.
2024-02-11 13:11:38 +01:00
## Installing
2024-02-11 13:05:57 +01:00
```bash
git clone https://git.staropensource.de/JeremyStarTM/pihole-docker.git pihole
cd pihole
cp passwd.env.example passwd.env
$EDITOR passwd.env
```
2024-02-11 13:11:38 +01:00
2024-02-11 13:05:57 +01:00
## Maintenance
### Starting
```bash
docker compose up -d
```
### Stopping
```bash
docker compose down
```
### Restarting
```bash
docker compose restart
```
### Accessing pihole-cli
```bash
./pihole.sh
```
2024-02-11 13:11:38 +01:00
## Networking
- Listen address: 127.0.0.1
- Ports
- Web: 8999
- DNS: 53
2024-03-09 13:11:14 +01:00
## systemd-resolved
If you use systemd-resolved (default on Arch Linux) you can use this command to apply a premade configuration file:
```bash
cp resolved.conf /etc/systemd/resolved.conf
systemctl restart systemd-resolved
resolvectl flush-caches
```
2024-02-11 13:05:57 +01:00
## License
It's in the public domain.