-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.14 KB
/
docker-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
version: '3'
volumes:
etc_pihole-unbound:
etc_pihole_dnsmasq-unbound:
services:
pihole:
container_name: pihole
image: ghcr.io/nickzelei/pihole-unbound:2024.07.0
hostname: ${HOSTNAME}
domainname: ${DOMAIN_NAME}
ports:
#- 443:443/tcp
- 53:53/tcp
- 53:53/udp
- "8080:80/tcp"
# - 5335:5335/tcp # Uncomment to enable unbound access on local server
# - 22/tcp # Uncomment to enable SSH
environment:
- TZ=America/Los_Angeles
- FTLCONF_LOCAL_IPV4=192.168.50.10
- WEBPASSWORD_FILE=/run/secrets/pihole_webpw
- WEBTHEME=default-auto
- PIHOLE_DNS_=127.0.0.1#5335
- REV_SERVER=true
- REV_SERVER_DOMAIN=local
- REV_SERVER_TARGET=192.168.50.1
- REV_SERVER_CIDR=192.168.5.0/24
- DNSMASQ_LISTENING=single # needed for exposure to other devices on network
- FTLCONF_BLOCK_ICLOUD_PR=false
secrets:
- pihole_webpw
volumes:
- etc_pihole-unbound:/etc/pihole:rw
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
- ./custom-dns.list:/etc/pihole/custom.list
restart: unless-stopped
secrets:
pihole_webpw:
file: webpassword