forked from mendersoftware/integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
210 lines (196 loc) · 5.83 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
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
version: '2.1'
services:
#
# mender-azure-iot-manager
#
mender-azure-iot-manager:
image: mendersoftware/azure-iot-manager:mender-master
extends:
file: common.yml
service: mender-base
networks:
- mender
depends_on:
- mender-mongo
labels:
mender.healthcheck.path: "/api/internal/v1/azure-iot-manager/health"
#
# mender-deployments
#
mender-deployments:
image: mendersoftware/deployments:mender-master
extends:
file: common.yml
service: mender-base
networks:
- mender
depends_on:
- mender-mongo
labels:
mender.healthcheck.path: "/api/internal/v1/deployments/health"
#
# mender-gui
#
mender-gui:
image: mendersoftware/gui:mender-master
extends:
file: common.yml
service: mender-base
networks:
- mender
environment:
- GATEWAY_IP
- INTEGRATION_VERSION
- MENDER_ARTIFACT_VERSION
- MENDER_VERSION
- MENDER_DEB_PACKAGE_VERSION
#
# mender-api-gateway
#
mender-api-gateway:
image: traefik:v2.5
extends:
file: common.yml
service: mender-base
# Enables the web UI and tells Traefik to listen to docker
command:
- --accesslog=true
- --entrypoints.http.address=:80
- --entrypoints.http.http.redirections.entryPoint.scheme=https
- --entrypoints.http.http.redirections.entryPoint.to=https
- --entrypoints.https.address=:443
- --entryPoints.https.transport.respondingTimeouts.idleTimeout=7200
- --entryPoints.https.transport.respondingTimeouts.readTimeout=7200
- --entryPoints.https.transport.respondingTimeouts.writeTimeout=7200
- --providers.file.directory=/etc/traefik/config
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock:ro
# Dynamic configuration files
- ./config/traefik/traefik.yaml:/etc/traefik/config/traefik.yaml:ro
- ./config/traefik/traefik.middlewares.yaml:/etc/traefik/config/traefik.middlewares.yaml:ro
networks:
- mender
# critical - otherwise nginx may not detect
# these servers and exits with 'upstream server not found'
depends_on:
- mender-device-auth
- mender-gui
- mender-useradm
- mender-inventory
#
# mender-device-auth
#
mender-device-auth:
image: mendersoftware/deviceauth:mender-master
environment:
DEVICEAUTH_ORCHESTRATOR_ADDR: http://mender-workflows-server:8080/
extends:
file: common.yml
service: mender-base
networks:
- mender
depends_on:
- mender-mongo
- mender-workflows-server
labels:
mender.healthcheck.path: "/api/internal/v1/devauth/health"
#
# mender-inventory
#
mender-inventory:
image: mendersoftware/inventory:mender-master
extends:
file: common.yml
service: mender-base
networks:
- mender
depends_on:
- mender-mongo
labels:
mender.healthcheck.path: "/api/internal/v1/inventory/health"
#
# mender-useradm
#
mender-useradm:
image: mendersoftware/useradm:mender-master
extends:
file: common.yml
service: mender-base
networks:
- mender
depends_on:
- mender-mongo
labels:
mender.healthcheck.path: "/api/internal/v1/useradm/health"
#
# mender-workflows-server
#
mender-workflows-server:
image: mendersoftware/workflows:mender-master
environment:
WORKFLOWS_MONGO_URL: mongodb://mender-mongo:27017
extends:
file: common.yml
service: mender-base
networks:
- mender
depends_on:
- mender-mongo
- mender-nats
labels:
mender.healthcheck.path: "/health"
#
# mender-workflows-worker
#
mender-workflows-worker:
image: mendersoftware/workflows-worker:mender-master
command: worker --excluded-workflows generate_artifact
environment:
WORKFLOWS_MONGO_URL: mongodb://mender-mongo:27017
extends:
file: common.yml
service: mender-base
networks:
- mender
depends_on:
- mender-mongo
- mender-nats
#
# mender-create-artifact-worker
#
mender-create-artifact-worker:
image: mendersoftware/create-artifact-worker:mender-master
extends:
file: common.yml
service: mender-base
environment:
- WORKFLOWS_MONGO_URL=mongodb://mender-mongo:27017
- CREATE_ARTIFACT_GATEWAY_URL=https://mender-api-gateway
- CREATE_ARTIFACT_DEPLOYMENTS_URL=http://mender-deployments:8080
networks:
- mender
depends_on:
- mender-mongo
- mender-nats
mender-mongo:
image: mongo:4.4
extends:
file: common.yml
service: mender-base
networks:
mender:
aliases:
- mongo-tenantadm
- mongo-deployments
- mongo-device-auth
- mongo-inventory
- mongo-useradm
- mongo-workflows
mender-nats:
image: nats:2.6-alpine
command: -js
networks:
- mender
networks:
mender: