2022-10-26 21:44:25 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
|
|
|
image: pihole/pihole:latest
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
ports:
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/udp"
|
|
|
|
environment:
|
|
|
|
TZ: 'Europe/Paris'
|
2022-11-11 21:06:26 +01:00
|
|
|
DNSMASQ_LISTENING: 'all'
|
|
|
|
WEBPASSWORD: 'ad89wahdw9d'
|
2022-10-26 21:44:25 +02:00
|
|
|
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"
|
2022-11-11 21:06:26 +01:00
|
|
|
- "traefik.http.services.pihole.loadbalancer.server.port=80"
|
2022-10-26 21:44:25 +02:00
|
|
|
- "traefik.docker.network=proxy"
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|