-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (39 loc) · 932 Bytes
/
docker-compose.yaml
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
version: '2.4'
services:
server:
image: joshperry/govpn:test
environment:
GOVPN_CONFIG_FILE: /server_config/config.yaml
GOVPN_TLS_CERT: /server_config/cert.pem
GOVPN_TLS_KEY: /server_config/key.pem
GOVPN_TLS_CA: /server_config/ca.pem
build:
context: .
dockerfile: Dockerfile.test
ports:
- "443:443"
- "9000:9000"
- "6060:6060"
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
command: [ '/server' ]
client:
image: joshperry/govpn:test
scale: 1
environment:
GOVPN_CONFIG_FILE: /client_config/config.yaml
GOVPN_TLS_CERT: /client_config/cert.pem
GOVPN_TLS_KEY: /client_config/key.pem
GOVPN_TLS_CA: /client_config/ca.pem
build:
context: .
dockerfile: Dockerfile.test
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
command: [ '/client' ]
links:
- server