blob: b3fbabdef82f5fa2a2c2ce406aeefe748956f001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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}"
|