-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
53 lines (52 loc) · 1.29 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.7"
services:
strongswan1:
build:
context: strongswan
dockerfile: Dockerfile
privileged: true
environment:
STRONGSWAN_VERSION: 5.8.1
VPN_LOCAL_PEER: strongswan1
VPN_LOCAL_NETWORK: 10.101.0.1
VPN_REMOTE_PEER: strongswan2
VPN_REMOTE_NETWORK: 10.102.0.1
volumes:
- type: bind
source: ./strong-duckling-linux
target: /strong-duckling
- type: bind
source: ./examples/${EXAMPLE}/left/
target: /config
strongswan2:
build:
context: strongswan
dockerfile: Dockerfile
privileged: true
environment:
STRONGSWAN_VERSION: 5.8.1
VPN_LOCAL_PEER: strongswan2
VPN_LOCAL_NETWORK: 10.102.0.1
VPN_REMOTE_PEER: strongswan1
VPN_REMOTE_NETWORK: 10.101.0.1
volumes:
- type: bind
source: ./strong-duckling-linux
target: /strong-duckling
- type: bind
source: ./examples/${EXAMPLE}/right
target: /config
prometheus:
image: prom/prometheus:v2.54.1
volumes:
- type: bind
source: ./prometheus.yml
target: /prometheus.yml
command:
- "--config.file=/prometheus.yml"
ports:
- 9090:9090
links:
- strongswan1:strongswan1
- strongswan2:strongswan2
restart: always