From ec9213bf4f024fa613f334dfceab1986432d1cd2 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 25 Feb 2020 13:30:13 +0200 Subject: [PATCH] Add pihole --- docker/pihole/docker-compose.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docker/pihole/docker-compose.yml diff --git a/docker/pihole/docker-compose.yml b/docker/pihole/docker-compose.yml new file mode 100644 index 0000000..61e9a19 --- /dev/null +++ b/docker/pihole/docker-compose.yml @@ -0,0 +1,34 @@ +version: "3" + +services: + pihole: + container_name: pihole + image: pihole/pihole:latest + ports: + - "53:53/tcp" + - "53:53/udp" + - "67:67/udp" + - "8053:80/tcp" + environment: + TZ: "Europe/Helsinki" + volumes: + - /docker/pihole/pihole/:/etc/pihole/ + - /docker/pihole/dnsmasq/:/etc/dnsmasq.d/ + - /docker/pihole/log/:/var/log/pihole.log + - /etc/localtime:/etc/localtime:ro + dns: + - 127.0.0.1 + - 1.1.1.1 + cap_add: + - NET_ADMIN + restart: always + labels: + - "traefik.enable=true" + - "traefik.frontend.rule=HostRegexp:pihole.reekynet.lan,{catchall:.*}" + - "traefik.frontend.priority=1" + - "traefik.backend=pihole" + - "traefik.port=80" + +networks: + proxy: + external: true