1
0
Fork 0
myserver-configuration/pihole/docker-compose.yml
2022-11-11 21:06:26 +01:00

31 lines
835 B
YAML

version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
networks:
- proxy
ports:
- "53:53/tcp"
- "53:53/udp"
environment:
TZ: 'Europe/Paris'
DNSMASQ_LISTENING: 'all'
WEBPASSWORD: 'ad89wahdw9d'
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihole-secure.entrypoints=https"
- "traefik.http.routers.pihole-secure.rule=Host(`pihole.mrdev023.fr`)"
- "traefik.http.routers.pihole-secure.tls=true"
- "traefik.http.routers.pihole-secure.tls.certresolver=http"
- "traefik.http.services.pihole.loadbalancer.server.port=80"
- "traefik.docker.network=proxy"
restart: always
networks:
proxy:
external: true