29 lines
688 B
YAML
29 lines
688 B
YAML
version: '3'
|
|
services:
|
|
pihole:
|
|
image: pihole
|
|
container_name: pihole_pihole
|
|
cap_add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- "53:53/tcp"
|
|
- "53:53/udp"
|
|
env_file:
|
|
- pihole.env
|
|
- pihole_secrets.env
|
|
volumes:
|
|
- pihole_pihole:/etc/pihole
|
|
- pihole_dnsmasq:/etc/dnsmasq
|
|
labels:
|
|
- traefik.http.routers.main-pihole.rule=Host(`main.pihole.jafner.net`)
|
|
- traefik.http.routers.main-pihole.tls.certresolver=lets-encrypt
|
|
- traefik.http.routers.main-pihole.middlewares=lan-only@file
|
|
- traefik.http.services.main-pihole.loadbalancer.server.port=80
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
|
|
volumes:
|
|
pihole_pihole:
|
|
pihole_dnsmasq: |