Files
pihole/docker-compose.yaml

47 lines
1020 B
YAML

services:
pihole:
image: pihole/pihole:latest
container_name: pihole
hostname: pihole
restart: unless-stopped
env_file:
- .env
ports:
- "127.0.0.1:53:53/tcp"
- "127.0.0.1:53:53/udp"
- "${WG_GUEST_IP}:53:53/tcp"
- "${WG_GUEST_IP}:53:53/udp"
- "${WG_ADMIN_IP}:53:53/tcp"
- "${WG_ADMIN_IP}:53:53/udp"
environment:
TZ: ${TZ}
WEBPASSWORD: ${WEBPASSWORD}
PIHOLE_DNS_: ${PIHOLE_DNS_}
DNSMASQ_LISTENING: all
FTLCONF_dns_listeningMode: all
FTLCONF_misc_etc_dnsmasq_d: 'true'
networks:
- dns_net
- dns_internal
volumes:
- pihole_data:/etc/pihole
- ./pihole_dnsmasq:/etc/dnsmasq.d
depends_on:
- unbound
cap_add:
- NET_ADMIN
unbound:
image: mvance/unbound:latest
container_name: unbound
restart: unless-stopped
networks:
- dns_net
networks:
dns_net:
external: true
dns_internal:
external: true
volumes:
pihole_data:
pihole_dnsmasq: