forked from chriscrowe/docker-pihole-unbound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
37 lines (35 loc) · 1.22 KB
/
docker-compose.yaml
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
version: '3.0'
volumes:
etc_pihole-unbound:
etc_pihole_dnsmasq-unbound:
services:
pihole:
container_name: pihole
image: ghcr.io/cameronaw13/pihole-unbound:latest
hostname: ${HOSTNAME}
domainname: ${DOMAIN_NAME}
ports:
- 443:443/tcp
- 53:53/tcp
- 53:53/udp
# - 67:67/udp # Uncomment to enable DHCP
- ${PIHOLE_WEBPORT:-80}:80/tcp # Adjust PIHOLE_WEBPORT if port 80 is in use
# cap_add: # Required for DHCP
# - NET_ADMIN
environment:
- FTLCONF_LOCAL_IPV4=${FTLCONF_LOCAL_IPV4} # Set your LAN's IPv4 address
- TZ=${TZ:-UTC} # Set your local timezone
- WEBPASSWORD=${WEBPASSWORD}
# - WEBPASSWORD_FILE=${WEBPASSWORD_FILE} # Uncomment to read password from a file
- WEBTHEME=${WEBTHEME:-default-light}
# - REV_SERVER=${REV_SERVER:-false} # Uncomment to enable conditional forwarding
# - REV_SERVER_TARGET=${REV_SERVER_TARGET}
# - REV_SERVER_DOMAIN=${REV_SERVER_DOMAIN}
# - REV_SERVER_CIDR=${REV_SERVER_CIDR}
- PIHOLE_DNS_=127.0.0.1#5335
- DNSSEC="true"
- DNSMASQ_LISTENING=single
volumes:
- etc_pihole-unbound:/etc/pihole:rw
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
restart: unless-stopped