-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (56 loc) · 1.29 KB
/
docker-compose.yaml
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
name: pihole
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
hostname: pihole
networks:
pihole:
ipv4_address: 172.20.0.2
dns:
- 127.0.0.1
ports:
- target: 53
published: 53
protocol: tcp
- target: 53
published: 53
protocol: udp
- target: 67
published: 67
protocol: udp
- target: 80
published: 80
protocol: tcp
- target: 443
published: 443
protocol: tcp
environment:
- 'TZ=${TZ}'
- 'WEBPASSWORD=${WEBPASSWORD}'
- 'VIRTUAL_HOST=pihole.fritz.box' # make pihole available under pihole.fritz.box
- 'PROXY_LOCATION=pihole'
- 'VIRTUAL_PORT=80'
- 'PIHOLE_DNS_=172.20.0.3#5053'
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
depends_on:
- cloudflared
restart: always
cloudflared:
image: crazymax/cloudflared:latest
container_name: cloudflared
hostname: cloudflared
networks:
pihole:
ipv4_address: 172.20.0.3
environment:
- 'TZ=${TZ}'
- 'TUNNEL_DNS_UPSTREAM=https://1.1.1.1/dns-query,https://1.0.0.1/dns-query'
restart: always
networks:
pihole:
ipam:
config:
- subnet: 172.20.0.0/24