Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 12f18fb

Browse files
committedMar 17, 2025·
Update docker compose config for PiHole
Closes #11
1 parent 6e1a897 commit 12f18fb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎docker-compose.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
devices:
1818
- /dev/net/tun
1919

20+
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
2021
pihole:
2122
container_name: pihole
2223
image: pihole/pihole:latest
@@ -27,13 +28,11 @@ services:
2728
ipv4_address: 172.20.0.2
2829
environment:
2930
TZ: "Europe/Berlin"
30-
WEBPASSWORD: "password"
31-
DNS1: 1.1.1.1 # Cloudflare
32-
DNS2: 8.8.8.8 # Google
33-
ServerIP: 172.20.0.2
31+
FTLCONF_webserver_api_password: "password"
32+
FTLCONF_dns_listeningMode: "all"
33+
FTLCONF_dns_upstreams: "1.1.1.1;8.8.8.8" # Cloudflare and Google
3434
volumes:
35-
- ./pihole/pihole:/etc/pihole
36-
- ./pihole/dnsmasq.d:/etc/dnsmasq.d
35+
- './pihole/pihole:/etc/pihole'
3736
cap_add:
3837
- NET_ADMIN
3938
restart: unless-stopped

0 commit comments

Comments
 (0)
Please sign in to comment.