-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
112 lines (107 loc) · 2.98 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
112 lines (107 loc) · 2.98 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
dnscrypt-proxy:
image: klutchell/dnscrypt-proxy:latest
container_name: dnscrypt-proxy
hostname: dnscrypt-proxy
restart: unless-stopped
environment:
TZ: "America/Toronto"
volumes:
- ./dnscrypt-proxy/config:/config:rw
- ./dnscrypt-proxy/log:/log:rw
expose:
- "5350"
networks:
wirehole:
ipv4_address: 10.2.0.200
pihole:
image: pihole/pihole:latest
container_name: pihole
hostname: pihole
restart: unless-stopped
depends_on:
- dnscrypt-proxy
environment:
TZ: "America/Toronto"
FTLCONF_webserver_api_password: "${PIHOLE_WEB_PASSWORD}"
FTLCONF_dns_listeningMode: "all"
FTLCONF_dns_upstreams: "10.2.0.200#5350; 10.2.0.200#5350"
ServerIP: 10.2.0.100
volumes:
- ./pihole/etc-pihole:/etc/pihole
- ./pihole/etc-dnsmasq.d:/etc/dnsmasq.d
- ./pihole/var-log:/var/log/pihole
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80"
- "443:443"
networks:
wirehole:
ipv4_address: 10.2.0.100
cap_add:
# Required if you are using Pi-hole as your NTP client to be able to set the host's system time
- SYS_TIME
# Optional, if Pi-hole should get some more processing time
- SYS_NICE
# Optional, if you are using Pi-Hole as your DHCP server
#- NET_ADMIN
wg-easy:
image: ghcr.io/wg-easy/wg-easy:15
container_name: wg-easy
restart: unless-stopped
depends_on:
- dnscrypt-proxy
- pihole
environment:
#WG_HOST: "${WG_HOST}"
#PASSWORD: "${WG_PASSWORD}"
#WG_PORT: 51820
#WG_DEFAULT_ADDRESS: 10.6.0.x
#WG_DEFAULT_DNS: 10.2.0.100
#WG_ALLOWED_IPS: 10.2.0.0/24,192.168.68.0/22
INSECURE: true
volumes:
- ./wireguard/etc_wireguard:/etc/wireguard
- /lib/modules:/lib/modules:ro
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
dns:
- 10.2.0.100
networks:
wirehole:
ipv4_address: 10.2.0.3
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 3600
dockerproxy:
image: ghcr.io/tecnativa/docker-socket-proxy:latest
container_name: dockerproxy
restart: unless-stopped
ports:
- 2375:2375
environment:
CONTAINERS: 1 # Allow access to viewing containers
SERVICES: 1 # Allow access to viewing services (necessary when using Docker Swarm)
TASKS: 1 # Allow access to viewing tasks (necessary when using Docker Swarm)
POST: 0 # Disallow any POST operations (effectively read-only)
INFO: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only
networks:
wirehole:
name: wirehole
ipam:
config:
- subnet: 10.2.0.0/24