pihole - add compose and secrets files
This commit is contained in:
29
hosts/home-morefine/docker/pihole/docker-compose.yaml
Normal file
29
hosts/home-morefine/docker/pihole/docker-compose.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
Reference in New Issue
Block a user