forked from strongX509/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 967 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"
services:
moon:
image: strongx509/pq-strongswan:latest
container_name: moon
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_MODULE
stdin_open: true
tty: true
volumes:
- ./moon:/etc/swanctl
- ./strongswan.conf:/etc/strongswan.conf
networks:
internet:
ipv4_address: 192.168.0.2
intranet:
ipv4_address: 10.1.0.2
carol:
image: strongx509/pq-strongswan:latest
container_name: carol
depends_on:
- moon
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_MODULE
stdin_open: true
tty: true
volumes:
- ./carol:/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