-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
executable file
·48 lines (45 loc) · 1009 Bytes
/
docker-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
services:
openvpn:
container_name: openvpn
build: ./openvpn-docker
ports:
- "1194:1194/udp"
networks:
vpn-net:
ipv4_address: 172.20.0.3
volumes:
- ./openvpn/pki:/etc/openvpn/pki
- ./openvpn/clients:/etc/openvpn/clients
- ./openvpn/config:/etc/openvpn/config
cap_add:
- NET_ADMIN
restart: unless-stopped
devices:
- /dev/net/tun
pihole:
container_name: pihole
image: pihole/pihole:latest
depends_on:
- "openvpn"
networks:
vpn-net:
ipv4_address: 172.20.0.2
environment:
TZ: "Europe/Berlin"
WEBPASSWORD: "password"
DNS1: 1.1.1.1 # Cloudflare
DNS2: 8.8.8.8 # Google
ServerIP: 172.20.0.2
volumes:
- ./pihole/pihole:/etc/pihole
- ./pihole/dnsmasq.d:/etc/dnsmasq.d
cap_add:
- NET_ADMIN
restart: unless-stopped
networks:
vpn-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/16