-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.48 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
version: '3'
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
network_mode: 'host'
env_file: '.env'
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
- 1.1.1.1
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: unless-stopped
wireguard:
container_name: wireguard
image: cmulk/wireguard-docker:buster
network_mode: 'host'
volumes:
- './etc-wireguard:/etc/wireguard'
cap_add:
- NET_ADMIN
- SYS_MODULE
restart: unless-stopped
cloudflared1:
container_name: cloudflared1
network_mode: 'host'
image: visibilityspots/cloudflared:amd64
command: [
'/bin/sh', '-c', '/usr/local/bin/cloudflared proxy-dns
--address 127.0.0.1 --port 5053
--upstream https://1.1.1.1/.well-known/dns-query --upstream https://1.0.0.1/.well-known/dns-query'
]
restart: unless-stopped
cloudflared2:
container_name: cloudflared2
network_mode: 'host'
image: visibilityspots/cloudflared:amd64
command: [
'/bin/sh', '-c', '/usr/local/bin/cloudflared proxy-dns
--address 127.0.0.1 --port 5054
--upstream https://1.1.1.1/.well-known/dns-query --upstream https://1.0.0.1/.well-known/dns-query'
]
restart: unless-stopped