infrastructure/ansible/roles/intersect-docker/files/pihole/docker-compose.yml

23 lines
720 B
YAML
Raw Normal View History

version: "2.3"
services:
pihole:
container_name: pihole
2020-05-14 14:15:36 +01:00
image: pihole/pihole:v5.0
ports:
- "{{ wireguard.clients.intersect.ip }}:53:53/tcp"
- "{{ wireguard.clients.intersect.ip }}:53:53/udp"
environment:
- TZ=Europe/London
- VIRTUAL_HOST=pihole.jakehoward.tech
volumes:
- ./pihole/:/etc/pihole/
- ./dnsmasq.d/:/etc/dnsmasq.d/
restart: unless-stopped
labels:
2020-06-18 20:49:12 +01:00
- traefik.enable=true
- traefik.http.routers.pihole.rule=Host(`pihole.jakehoward.tech`)
- traefik.http.routers.pihole.tls.certresolver=le
- traefik.http.routers.pihole.middlewares=internal-only@file
- traefik.http.services.pihole-pihole.loadbalancer.server.port=80