62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
version: "3"
|
|
|
|
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
|
|
services:
|
|
pihole:
|
|
container_name: pihole
|
|
image: pihole/pihole:latest
|
|
environment:
|
|
- TZ=${TIMEZONE}
|
|
- CORS_HOSTS=pihole.${DOMAIN_ROOT}
|
|
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
|
- WEBPASSWORD=${WEB_UI_PASSWORD}
|
|
|
|
ports:
|
|
- "53:53/tcp"
|
|
- "53:53/udp"
|
|
|
|
# Volumes store your data between container upgrades
|
|
volumes:
|
|
- pihole-config_data:/etc/pihole
|
|
- pihole-dnsmasq_data:/etc/dnsmasq.d
|
|
- ./pihole-lighttpd.conf:/etc/lighttpd/lighttpd.conf
|
|
cap_add:
|
|
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
|
|
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.pihole.rule=Host(`pihole.${DOMAIN_ROOT}`)"
|
|
- "traefik.http.services.pihole.loadbalancer.server.port=8081"
|
|
- 'traefik.http.routers.pihole.middlewares=authelia@docker'
|
|
|
|
networks:
|
|
- home-proxy
|
|
|
|
restart: unless-stopped
|
|
|
|
# pihole-proxy:
|
|
# container_name: pihole-proxy
|
|
# image: gitea.dudenhoeffer.casa/steve/simpleproxy:latest
|
|
# command: http://192.168.0.197:8081/
|
|
#
|
|
# labels:
|
|
# - "traefik.enable=true"
|
|
# - "traefik.http.routers.pihole.rule=Host(`pihole.dudenhoeffer.casa`)"
|
|
# - "traefik.http.services.pihole.loadbalancer.server.port=8080"
|
|
# - 'traefik.http.routers.pihole.middlewares=authelia@docker'
|
|
#
|
|
# networks:
|
|
# - home-proxy
|
|
#
|
|
# restart: unless-stopped
|
|
#
|
|
networks:
|
|
home-proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
pihole-config_data:
|
|
external: true
|
|
pihole-dnsmasq_data:
|
|
external: true
|