diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-09-18 15:56:31 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-09-18 15:57:46 +0200 |
commit | b18e29b389792267269c77db711b54d38e6b9d59 (patch) | |
tree | 973ad914da9105cc526df1690cc99dc038fea5e4 /Applications/PiHole/docker-compose.yml |
initial commit
Diffstat (limited to 'Applications/PiHole/docker-compose.yml')
-rw-r--r-- | Applications/PiHole/docker-compose.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Applications/PiHole/docker-compose.yml b/Applications/PiHole/docker-compose.yml new file mode 100644 index 0000000..b3fbabd --- /dev/null +++ b/Applications/PiHole/docker-compose.yml @@ -0,0 +1,35 @@ +version: "3" + +services: + pihole: + image: "pihole/pihole" + container_name: "pihole" + restart: "unless-stopped" + cap_add: + - NET_ADMIN + dns: + - "127.0.0.1" + hostname: "${DOMAIN}" + ports: + - "53:53/tcp" + - "53:53/udp" + - "67:67/udp" + environment: + - "VIRTUAL_HOST=${DOMAIN}" + - "DNSMASQ_LISTENING=all" + env_file: ".env.pihole" + volumes: + - "./volumes/pihole/data:/etc/pihole" + - "./volumes/pihole/dnsmasq.d:/etc/dnsmasq.d" + - "./volumes/pihole/custom.list:/etc/pihole/custom.list" + networks: + - "traefik" + labels: + - "traefik.enable=true" + - "traefik.http.routers.pihole.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.pihole.entrypoints=web" + - "traefik.http.services.pihole.loadbalancer.server.port=80" + +networks: + traefik: + name: "${TRAEFIK_NETWORK}" |