-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.13 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
54
55
56
services:
strongswan-base:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_QKD_KEM: "true"
image: strongswan-base:latest
container_name: strongswan-base
bob:
image: strongswan-base:latest
container_name: bob
depends_on:
- strongswan-base
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_MODULE
stdin_open: true
tty: true
volumes:
- ./bob:/etc/swanctl
- ./strongswan.conf:/etc/strongswan.conf
networks:
internet:
ipv4_address: 192.168.0.2
intranet:
ipv4_address: 10.1.0.2
alice:
image: strongswan-base:latest
container_name: alice
depends_on:
- strongswan-base
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_MODULE
stdin_open: true
tty: true
volumes:
- ./alice:/etc/swanctl
- ./strongswan.conf:/etc/strongswan.conf
networks:
internet:
ipv4_address: 192.168.0.3
networks:
internet:
ipam:
driver: default
config:
- subnet: 192.168.0.0/24
intranet:
ipam:
driver: default
config:
- subnet: 10.1.0.0/16