-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (44 loc) · 941 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
48
49
version: "3.5"
#volumes:
# vpn-data:
networks:
vpn-services:
# docker network create -d bridge --subnet <> myvpn-net
# ipam:
# driver: bridge
# config:
# - subnet: "10.70.254.0/24"
external: true
name: myvpn-net
services:
vpn:
restart: unless-stopped
container_name: ovpn
image: openvpn-server
networks:
vpn-services:
ipv4_address: 10.70.254.3
ports:
- 3000:1194/udp
cap_add:
- NET_ADMIN
volumes:
# - vpn-data:/etc/openvpn
# - ./config/ovpn:/etc/openvpn
- ../vpn-data:/etc/openvpn
depends_on:
- dns
dns:
container_name: ovpn_dns
image: jpillora/dnsmasq
restart: unless-stopped
networks:
vpn-services:
ipv4_address: 10.70.254.2
# cap_add:
# - NET_ADMIN
expose:
- 53
volumes:
# - dns_config : /etc/dnsmasq.conf
- ./config/dns/dnsmasq.conf:/etc/dnsmasq.conf