2022-03-14 04:43:56 +01:00
|
|
|
version: '3.0'
|
2020-12-31 21:23:33 +01:00
|
|
|
|
2021-03-16 09:43:20 +01:00
|
|
|
volumes:
|
|
|
|
etc_pihole-unbound:
|
|
|
|
etc_pihole_dnsmasq-unbound:
|
2020-12-31 21:23:33 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
|
|
|
image: cbcrowe/pihole-unbound:latest
|
2021-03-16 09:43:20 +01:00
|
|
|
hostname: ${HOSTNAME}
|
|
|
|
domainname: ${DOMAIN_NAME}
|
2020-12-31 21:23:33 +01:00
|
|
|
ports:
|
2021-03-16 09:43:20 +01:00
|
|
|
- 443:443/tcp
|
|
|
|
- 53:53/tcp
|
|
|
|
- 53:53/udp
|
2022-03-11 18:17:03 +01:00
|
|
|
- ${PIHOLE_WEBPORT:-80}:80/tcp #Allows use of different port to access pihole web interface when other docker containers use port 80
|
2021-05-28 04:33:44 +02:00
|
|
|
# - 5335:5335/tcp # Uncomment to enable unbound access on local server
|
2020-12-31 21:23:33 +01:00
|
|
|
# - 22/tcp # Uncomment to enable SSH
|
|
|
|
environment:
|
2022-03-11 17:57:36 +01:00
|
|
|
- FTLCONF_REPLY_ADDR4=${FTLCONF_REPLY_ADDR4}
|
2022-03-11 18:17:03 +01:00
|
|
|
- TZ=${TZ:-UTC}
|
2022-02-13 17:55:58 +01:00
|
|
|
- WEBPASSWORD=${WEBPASSWORD}
|
2022-03-11 18:17:03 +01:00
|
|
|
- WEBTHEME=${WEBTHEME:-default-light}
|
|
|
|
- REV_SERVER=${REV_SERVER:-false}
|
2022-02-13 17:55:58 +01:00
|
|
|
- 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"
|
2022-03-11 17:57:36 +01:00
|
|
|
- DNSMASQ_LISTENING=single
|
2020-12-31 21:23:33 +01:00
|
|
|
volumes:
|
|
|
|
- etc_pihole-unbound:/etc/pihole:rw
|
|
|
|
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
|
|
|
|
restart: unless-stopped
|