2020-07-12 08:59:30 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
|
|
|
image: pihole/pihole:latest
|
|
|
|
ports:
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/udp"
|
|
|
|
- "67:67/udp"
|
|
|
|
- "8069:80/tcp"
|
2020-07-12 10:27:17 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
2020-07-12 08:59:30 +00:00
|
|
|
environment:
|
|
|
|
TZ: "Europe/Helsinki"
|
|
|
|
WEBPASSWORD: "${WEBPASSWORD}"
|
|
|
|
volumes:
|
2020-07-12 09:01:46 +00:00
|
|
|
- "/docker/pihole/pihole:/etc/pihole/"
|
|
|
|
- "/docker/pihole/dnsmasq:/etc/dnsmasq.d/"
|
2020-07-12 08:59:30 +00:00
|
|
|
dns:
|
|
|
|
- 127.0.0.1
|
|
|
|
- 1.1.1.1
|
|
|
|
# Recommended but not required (DHCP needs NET_ADMIN)
|
2020-07-12 09:01:46 +00:00
|
|
|
# https://github.com/pihole/docker-pihole#note-on-capabilities
|
2020-07-12 08:59:30 +00:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
restart: unless-stopped
|
2020-07-12 10:23:18 +00:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
|
|
|
|
- "traefik.http.routers.pihole-redirect.entrypoints=http"
|
2020-12-06 09:36:01 +00:00
|
|
|
- "traefik.http.routers.pihole-redirect.rule=Host(`pihole.korhonen.cc`)"
|
2020-07-12 10:23:18 +00:00
|
|
|
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
|
|
|
|
- "traefik.http.routers.pihole-redirect.middlewares=http2https"
|
|
|
|
|
|
|
|
- "traefik.http.routers.pihole.entrypoints=https"
|
2020-12-06 09:36:01 +00:00
|
|
|
- "traefik.http.routers.pihole.rule=Host(`pihole.korhonen.cc`)"
|
2020-07-12 10:23:18 +00:00
|
|
|
- "traefik.http.routers.pihole.tls=true"
|
|
|
|
- "traefik.http.routers.pihole.tls.certresolver=http"
|
|
|
|
- "traefik.http.routers.pihole.service=pihole"
|
|
|
|
- "traefik.docker.network=proxy"
|
2020-07-12 10:32:27 +00:00
|
|
|
- "traefik.http.services.pihole.loadbalancer.server.port=80"
|
2020-07-12 10:27:17 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|