-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (100 loc) · 2.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
107 lines (100 loc) · 2.43 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
networks:
private_network:
ipam:
driver: default
config:
- subnet: 10.2.0.0/24
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: unless-stopped
ports:
- "9000:9000"
- "9443:9443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
unbound:
image: "klutchell/unbound"
container_name: unbound
restart: unless-stopped
hostname: "unbound"
networks:
private_network:
ipv4_address: 10.2.0.200 # Internal IP unbound
pihole:
depends_on: [unbound]
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
hostname: pihole
dns:
- 127.0.0.1
- 10.2.0.200 # Points to unbound
environment:
TZ: "${TZ}"
FTLCONF_webserver_api_password: "${PIHOLE_PW}"
TLCONF_dns_listeningMode: 'all'
ServerIP: 10.2.0.100 # Internal IP of Pihole
DNS1: 10.2.0.200 # Unbound IP
DNS2: 10.2.0.200 # Specify 2nd one to not pick google
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
cap_add:
- NET_ADMIN
networks:
private_network:
ipv4_address: 10.2.0.100
ports:
- "8080:80"
- "53:53/tcp"
- "53:53/udp"
wg-easy:
depends_on: [unbound, pihole]
environment:
- WG_HOST=${WG_HOST}
- PASSWORD=${WG_PW}
- WG_PORT=51820
- WG_DEFAULT_ADDRESS=10.6.0.x
- WG_DEFAULT_DNS=10.2.0.100
image: ghcr.io/wg-easy/wg-easy:13
container_name: wg-easy
volumes:
- ~/wireguard:/etc/wireguard
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
restart: unless-stopped
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 # Point to pihole
- 10.2.0.200 # Point to unbound
networks:
private_network:
ipv4_address: 10.2.0.3
freedns:
image: linuxserver/ddclient
container_name: freedns
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- INTERVAL=300
- PROTOCOL=freedns
- SERVER=freedns.afraid.org
- HOST=${FDNS_HOST}
- USER=${FDNS_USER}
- PASSWORD=${FDNS_PW}
restart: unless-stopped
networks:
private_network:
ipv4_address: 10.2.0.150
volumes:
portainer_data: