forked from lagr/docker-based-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wfms.yml
249 lines (231 loc) · 5.37 KB
/
wfms.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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
version: "2"
networks:
frontend:
driver: overlay
backend:
driver: overlay
enactment:
driver: overlay
services:
registry:
image: registry:2.3
restart: always
ports:
- 5000:5000
networks:
- backend
environment:
- "constraint:node==coordination-machine"
mom:
image: rabbitmq:3-management
restart: on-failure:3
networks:
- backend
- enactment
- frontend
ports:
- "8080:15672"
environment:
- "constraint:node==internal-machine"
engine:
image: wf_engine
build:
context: ./engine
args:
- "constraint:node==development-machine"
restart: on-failure:3
depends_on:
- mom
networks:
- backend
- enactment
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/machine/certs/:/root/.docker
environment:
SWARM_MANAGER_CERT_PATH: /root/.docker
organization_db:
image: postgres
restart: on-failure:3
depends_on:
- organization_db_data
volumes_from:
- organization_db_data
networks:
- backend
environment:
- "POSTGRES_PASSWORD=masterarbeit"
- "POSTGRES_USER=organization"
organization_db_data:
image: cogniteev/echo
networks:
- backend
volumes:
- /var/lib/postgresql/data
environment:
- "constraint:node==development-machine"
organization:
image: organization
build:
context: ./organization
args:
- "constraint:node==development-machine"
restart: on-failure:3
depends_on:
- organization_db
- mom
networks:
- backend
environment:
- "constraint:node==development-machine"
- "POSTGRES_PASSWORD=masterarbeit"
- "POSTGRES_USER=organization"
worklist_db:
image: postgres
restart: on-failure:3
volumes_from:
- worklist_db_data
networks:
- enactment
environment:
- "POSTGRES_PASSWORD=masterarbeit"
- "POSTGRES_USER=worklist"
worklist_db_data:
image: cogniteev/echo
networks:
- enactment
volumes:
- /var/lib/postgresql/data
environment:
- "constraint:node==internal-machine"
worklist:
image: worklist
build:
context: ./worklist
args:
- "constraint:node==internal-machine"
restart: on-failure:3
depends_on:
- worklist_db
- mom
networks:
- enactment
environment:
- "constraint:node==internal-machine"
- "POSTGRES_PASSWORD=masterarbeit"
- "POSTGRES_USER=worklist"
definition_db:
image: postgres
restart: on-failure:3
depends_on:
- definition_db_data
volumes_from:
- definition_db_data
networks:
- backend
environment:
- "POSTGRES_PASSWORD=masterarbeit"
- "POSTGRES_USER=definition"
definition_db_data:
image: cogniteev/echo
networks:
- backend
volumes:
- /var/lib/postgresql/data
environment:
- "constraint:node==development-machine"
definition:
image: definition
build:
context: ./definition
args:
- "constraint:node==development-machine"
restart: on-failure:3
depends_on:
- definition_db
- mom
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/machine/certs/:/root/.docker
networks:
- backend
environment:
- "constraint:node==development-machine"
- "POSTGRES_PASSWORD=masterarbeit"
- "POSTGRES_USER=definition"
infrastructure:
image: infrastructure
build:
context: ./infrastructure
args:
- "constraint:node==development-machine"
restart: on-failure:3
depends_on:
- mom
networks:
- backend
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/machine/certs/:/root/.docker
environment:
- "SWARM_MANAGER_CERT_PATH=/root/.docker"
- "constraint:node==development-machine"
user_gateway:
image: user_gateway
build:
context: ./user_gateway
args:
- "constraint:node==internal-machine"
restart: on-failure:3
depends_on:
- mom
ports:
- "3001:3000"
networks:
- frontend
environment:
- "constraint:node==internal-machine"
developer_gateway:
image: developer_gateway
build:
context: ./developer_gateway
args:
- "constraint:node==development-machine"
restart: on-failure:3
depends_on:
- mom
ports:
- "3000:3000"
networks:
- frontend
environment:
- "constraint:node==development-machine"
provisioner:
image: provisioner
build:
context: ./provisioner
args:
- "constraint:node==cloud-machine"
restart: on-failure:3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/machine/certs/:/root/.docker
environment:
- "SWARM_MANAGER_IP=192.168.99.101"
- "SWARM_MANAGER_CERT_PATH=/root/.docker"
- "constraint:node==cloud-machine"
event_converter:
image: event_converter
build:
context: ./event_converter
args:
- "constraint:node==development-machine"
restart: on-failure:3
networks:
- backend
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/machine/certs/:/root/.docker
environment:
- "SWARM_MANAGER_CERT_PATH=/root/.docker"
- "constraint:node==development-machine"