37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
services:
|
|
pihole-unbound:
|
|
image: mpgirro/pihole-unbound:latest
|
|
hostname: ${HOSTNAME}
|
|
ports:
|
|
- 447:443/tcp
|
|
- 53:53/tcp
|
|
- 53:53/udp
|
|
- ${PIHOLE_WEBPORT:-88}:${PIHOLE_WEBPORT:-80}/tcp #Allows use of different port to access pihole web interface when other docker containers use port 80
|
|
- 5335:5335/tcp # Uncomment to enable unbound access on local server
|
|
# - 22/tcp # Uncomment to enable SSH
|
|
environment:
|
|
- TZ=${TZ:-UTC}
|
|
- FTLCONF_webserver_api_password=${WEBPASSWORD}
|
|
- FTLCONF_webserver_interface_theme=${WEBTHEME:-default-dark}
|
|
- FTLCONF_dns_revServers=${REV_SERVER:-false},${REV_SERVER_CIDR},${REV_SERVER_TARGET},${REV_SERVER_DOMAIN}
|
|
- FTLCONF_dns_upstreams=127.0.0.1#5335
|
|
- FTLCONF_dns_dnssec="true"
|
|
- FTLCONF_dns_listeningMode=single
|
|
- FTLCONF_webserver_port=80
|
|
volumes:
|
|
- etc_pihole-unbound:/etc/pihole:rw
|
|
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
|
|
|
|
volumes:
|
|
etc_pihole-unbound:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: /mnt/swarm_shared/legacy_volumes/pihole/unbound/pihole-dns_etc_pihole_dnsmasq-unbound/
|
|
etc_pihole_dnsmasq-unbound:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: /mnt/swarm_shared/legacy_volumes/pihole/dnsmasq/pihole-dns_etc_pihole_dnsmasq-unbound/ |