-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
60 lines (56 loc) · 1.53 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
pihole:
container_name: pihole
image: pihole/pihole:2025.03.0
hostname: pihole
ports:
- 53:53/tcp
- 53:53/udp
- "8080:80/tcp"
environment:
- TZ=America/Los_Angeles
- WEBPASSWORD_FILE=pihole_webpw
- FTLCONF_webserver_interface_theme=default-auto
- FTLCONF_dns_upstreams=unbound#53
# - FTLCONF_dns_revServers=true,192.168.50.0/24,192.168.50.1:53,local
- FTLCONF_BLOCK_ICLOUD_PR=true
- FTLCONF_dns_listeningMode=all
volumes:
# For persisting Pi-hole's databases and common configuration file
- etc_pihole:/etc/pihole
cap_add:
# See https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
# Required if you are using Pi-hole as your DHCP server, else not needed
#- NET_ADMIN
# Required if you are using Pi-hole as your NTP client to be able to set the host's system time
- SYS_TIME
# Optional, if Pi-hole should get some more processing time
- SYS_NICE
secrets:
- pihole_webpw
#dns:
# - 1.1.1.1
restart: unless-stopped
networks:
- pihole
depends_on:
- unbound
unbound:
container_name: unbound
image: mvance/unbound${UNBOUND_IMAGE_SUFFIX}:1.22.0
ports:
- "5335:53/tcp"
- "5335:53/udp"
volumes:
- ./unbound/unbound.conf:/opt/unbound/etc/unbound/unbound.conf:ro
restart: unless-stopped
networks:
- pihole
secrets:
pihole_webpw:
file: webpassword
volumes:
etc_pihole:
networks:
pihole:
driver: bridge