-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dns.yml
73 lines (67 loc) · 1.92 KB
/
docker-compose.dns.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '2.4'
services:
cloudflared:
container_name: cloudflared
image: visibilityspots/cloudflared
restart: unless-stopped
networks:
net:
ipv4_address: 172.20.0.2
logging:
options:
max-size: 10m
pihole:
container_name: pihole
image: pihole/pihole
hostname: "pihole.${INTERNAL_DOMAIN}"
restart: unless-stopped
environment:
TZ: 'Europe/London'
WEBPASSWORD: ''
VIRTUAL_HOST: "pihole.${INTERNAL_DOMAIN}"
ServerIP: 192.168.11.16
DNS1: 172.20.0.2#5054
DNS2: 1.0.0.1
DNSMASQ_LISTENING: local
volumes:
- pihole-config:/etc/pihole
- dnsmasq-config:/etc/dnsmasq.d
dns:
- 127.0.0.1
- 172.20.0.2
networks:
net:
ipv4_address: 172.20.0.3
lan:
traefik_proxy:
logging:
options:
max-size: 10m
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_proxy"
- "traefik.http.routers.pihole-insecure.rule=Host(`pihole.${INTERNAL_DOMAIN}`)"
- "traefik.http.routers.pihole-insecure.entryPoints=web"
- "traefik.http.services.service-pihole.loadbalancer.server.port=80"
networks:
net:
name: dns
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24
lan:
external: true
traefik_proxy:
external: true
volumes:
pihole-config:
name: pihole-config
driver: local-persist
driver_opts:
mountpoint: "${PERSIST_DATA_PATH}/data/pihole-config"
dnsmasq-config:
name: dnsmasq-config
driver: local-persist
driver_opts:
mountpoint: "${PERSIST_DATA_PATH}/data/dnsmasq-config"