30 lines
672 B
YAML
30 lines
672 B
YAML
services:
|
|
pihole:
|
|
image: pihole/pihole:latest
|
|
container_name: pihole
|
|
restart: unless-stopped
|
|
networks:
|
|
- caddy_internal
|
|
ports:
|
|
# - "8081:80"
|
|
- "53:53/tcp"
|
|
- "53:53/udp"
|
|
environment:
|
|
TZ: 'Europe/Minsk'
|
|
WEBPASSWORD_FILE: /run/secrets/pihole/WEBPASSWORD
|
|
#FTLCONF_webserver_api_password: WEBPASSWORD_FILE
|
|
FTLCONF_dns_listeningMode: 'all'
|
|
volumes:
|
|
- /srv/rundata/pihole/etc-pihole:/etc/pihole/
|
|
- /srv/rundata/pihole/dnsmasq.d:/etc/dnsmasq.d/
|
|
dns:
|
|
- 127.0.0.1
|
|
- 1.1.1.1
|
|
# - 8.8.8.8
|
|
cap_add:
|
|
- NET_ADMIN
|
|
|
|
networks:
|
|
caddy_internal:
|
|
external: true
|