-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.1 KB
/
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
48
49
50
51
52
53
version: '3'
services:
openvpn:
image: kylemanna/openvpn:2.4
cap_add:
- NET_ADMIN
container_name: openvpn
ports:
- 1194:1194/udp
restart: always
volumes:
- ./openvpn/:/etc/openvpn
depends_on:
- startup
command: ["/etc/openvpn/wait.sh", "5", "ovpn_run"]
pihole:
image: diginc/pi-hole:debian
restart: always
cap_add:
- NET_ADMIN
container_name: pihole
dns:
- ${PIHOLE_DNS1}
- ${PIHOLE_DNS2}
ports:
- ${PIHOLE_HTTP_PORT}:80
environment:
- ServerIP=${PIHOLE_SERVER_IP}
- TZ=${PIHOLE_TIMEZONE}
- WEBPASSWORD=${PIHOLE_WEBPASSWORD}
- DNS1=${PIHOLE_DNS1}
- DNS2=${PIHOLE_DNS2}
- VIRTUAL_HOST={PIHOLE_VIRTUAL_HOST}
depends_on:
- openvpn
startup:
build: ./startup
container_name: startup
command: start.sh
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./openvpn/:/openvpn
- ./startup/start.sh:/usr/local/bin/start.sh
dyndns:
build: ./dyndns
container_name: dyndns
restart: always
volumes:
- ./dyndns/crontabs:/etc/crontabs