-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 955 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 955 Bytes
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
version: '3.8'
services:
ocserv:
build:
context: .
dockerfile: Dockerfile.ocserv
container_name: ocserv-backend
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ./examples/ocserv-backend.conf:/etc/ocserv/ocserv.conf:ro
- ./certs:/etc/ocserv/certs:ro
# For prototype, we use host network or fixed IP to allow h2_vpn to reach it
networks:
vpn_net:
ipv4_address: 172.20.0.2
h2_vpn:
image: golang:1.24-alpine
container_name: h2-frontend
volumes:
- .:/app
- ./examples/config-gost.json:/app/config.json:ro
- ./certs:/app/certs:ro
working_dir: /app
command: /app/build/h2_vpn run -c /app/config.json
ports:
- "443:443"
depends_on:
- ocserv
networks:
vpn_net:
ipv4_address: 172.20.0.3
networks:
vpn_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24