-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
176 lines (173 loc) · 3.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
176 lines (173 loc) · 3.71 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
x-healthcheck-defaults: &healthcheck-defaults
interval: 5s
timeout: 5s
retries: 10
start_period: 1s
services:
alice:
build: .
container_name: alice
environment:
D3TN_AAP2_KEY: "my_extremely_secret_secret_omg_i_love_this_secretly_secret_secret"
networks:
- charon
command:
- /app/build/charon
- /app/conf/charon.conf
cap_add:
- NET_ADMIN
volumes:
- ./configs/ip/alice/:/app/conf/
devices:
- /dev/net/tun
profiles:
- tests
- alice
depends_on:
ud3tn-config-rx:
condition: service_completed_successfully
ud3tn-config:
condition: service_completed_successfully
bob:
build: .
container_name: bob
environment:
D3TN_AAP2_KEY: "my_extremely_secret_secret_omg_i_love_this_secretly_secret_secret"
networks:
- charon
cap_add:
- NET_ADMIN
command:
- /app/build/charon
- /app/conf/charon.conf
volumes:
- ./configs/ip/bob:/app/conf/
devices:
- /dev/net/tun
profiles:
- tests
- bob
depends_on:
ud3tn-config-rx:
condition: service_completed_successfully
ud3tn-config:
condition: service_completed_successfully
alice-ud3tn:
image: registry.gitlab.com/d3tn/ud3tn-docker-images/ud3tn:v0.15.0
networks:
- charon
ports:
- 4225:4225
environment:
AAP2_SECRET: "my_extremely_secret_secret_omg_i_love_this_secretly_secret_secret"
command:
- --allow-remote-config
- -b
- "7"
- -c
- "mtcp:*,4224"
- -e
- dtn://alice.dtn/
- -l
- "86400"
- -L
- "4"
- -m
- "0"
- -P
- "4225"
- -A
- 0.0.0.0
- -x
- "AAP2_SECRET"
healthcheck:
test: ["CMD-SHELL", "pgrep ud3tn > /dev/null || exit 1"]
interval: 1s
timeout: 5s
retries: 1
start_period: 1s
bob-ud3tn:
image: registry.gitlab.com/d3tn/ud3tn-docker-images/ud3tn:v0.15.0
networks:
- charon
environment:
AAP2_SECRET: "my_extremely_secret_secret_omg_i_love_this_secretly_secret_secret"
ports:
- 4226:4225
command:
- --allow-remote-config
- -b
- "7"
- -c
- "mtcp:*,4224"
- -e
- dtn://bob.dtn/
- -l
- "86400"
- -L
- "4"
- -m
- "0"
- -P
- "4225"
- -A
- 0.0.0.0
- -x
- "AAP2_SECRET"
healthcheck:
test: ["CMD-SHELL", "pgrep ud3tn > /dev/null || exit 1"]
interval: 1s
timeout: 5s
retries: 1
start_period: 1s
ud3tn-config:
image: ud3tn-python:exp
networks:
- charon
environment:
AAP2_SECRET: "my_extremely_secret_secret_omg_i_love_this_secretly_secret_secret"
command:
- /usr/local/bin/aap2-config
- --tcp
- alice-ud3tn
- "4225"
- --secret-var
- AAP2_SECRET
- --schedule
- "1"
- "3600000"
- "100000"
- dtn://bob.dtn/
- "mtcp:bob-ud3tn:4224"
depends_on:
alice-ud3tn:
condition: service_healthy
bob-ud3tn:
condition: service_healthy
ud3tn-config-rx:
image: ud3tn-python:exp
networks:
- charon
environment:
AAP2_SECRET: "my_extremely_secret_secret_omg_i_love_this_secretly_secret_secret"
command:
- /usr/local/bin/aap2-config
- --tcp
- bob-ud3tn
- "4225"
- --secret-var
- AAP2_SECRET
- --schedule
- "1"
- "3600000"
- "100000"
- dtn://alice.dtn/
- "mtcp:alice-ud3tn:4224"
depends_on:
alice-ud3tn:
condition: service_healthy
bob-ud3tn:
condition: service_healthy
networks:
charon:
driver: bridge