This repository was archived by the owner on Dec 21, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathcompose.yml
More file actions
56 lines (53 loc) · 1.17 KB
/
compose.yml
File metadata and controls
56 lines (53 loc) · 1.17 KB
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
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
- 1.1.1.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=Europe/Paris"
- "PROXY_LOCATION=pihole"
- "VIRTUAL_PORT=80"
- "PIHOLE_DNS_=172.20.0.3#5053;1.1.1.1"
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
restart: always
cloudflared:
image: crazymax/cloudflared:latest
container_name: cloudflared
hostname: cloudflared
networks:
pihole:
ipv4_address: 172.20.0.3
environment:
- "TZ=Europe/Paris"
- "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