-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpihole-cloudflare-compose.yml
47 lines (44 loc) · 1.08 KB
/
pihole-cloudflare-compose.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
####################################################################
###This is a working setup to run Pihole with cloudflare over DOH###
####################################################################
version: "3.7"
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8080:80/tcp"
- "4443:443/tcp"
environment:
- "TZ=Europe/Rome"
- "DNS1=172.30.9.2#5054"
- "DNS2=no"
- "DNSMASQ_LISTENING=all"
volumes:
- /your/directory/pihole/etc-pihole:/etc/pihole/
- /your/directory/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
restart: always
depends_on:
- cloudflared
networks:
internal:
ipv4_address: 172.30.9.3
cloudflared:
container_name: cloudflared
restart: always
image: visibilityspots/cloudflared
networks:
internal:
ipv4_address: 172.30.9.2
networks:
internal:
ipam:
config:
- subnet: 172.30.9.0/29