-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.demo.yml
97 lines (86 loc) · 3.35 KB
/
docker-compose.demo.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
services:
mender-iot-manager:
command: server --automigrate
mender-useradm:
command: server --automigrate
volumes:
- ./keys/useradm/private.key:/etc/useradm/rsa/private.pem
environment:
USERADM_SERVER_PRIV_KEY_PATH: /etc/useradm/rsa/private.pem
mender-device-auth:
command: server --automigrate
volumes:
- ./keys/deviceauth/private.key:/etc/deviceauth/rsa/private.pem
environment:
DEVICEAUTH_SERVER_PRIV_KEY_PATH: /etc/deviceauth/rsa/private.pem
mender-inventory:
command: server --automigrate
mender-api-gateway:
ports:
- 80:80
- 443:443
- 8080:8080
command:
- --accesslog=true
- --api.dashboard=true
- --api.insecure=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
- --log.level=DEBUG
- --ping=true
- --providers.file.directory=/etc/traefik/config
environment:
MENDER_DEMO: "true"
TRAEFIK_API: "true"
networks:
mender:
aliases:
- docker.mender.io
- s3.docker.mender.io
volumes:
- ./config/traefik/traefik.tls.yaml:/etc/traefik/config/traefik.tls.yaml:ro
- ./cert/cert.crt:/etc/traefik/certs/cert.crt
- ./cert/private.key:/etc/traefik/certs/private.key
mender-deployments:
command: server --automigrate
volumes:
- ./cert/cert.crt:/etc/ssl/certs/docker.mender.io.crt
environment:
STORAGE_BACKEND_CERT: /etc/ssl/certs/docker.mender.io.crt
DEPLOYMENTS_AWS_AUTH_KEY: minio
DEPLOYMENTS_AWS_AUTH_SECRET: minio123
DEPLOYMENTS_AWS_URI: http://minio:9000
DEPLOYMENTS_AWS_EXTERNAL_URI: https://s3.docker.mender.io
depends_on:
- mender-mongo
minio:
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 1s
timeout: 5s
retries: 10
start_period: 5s
# use rate limiting, for more options see: https://docs.traefik.io/v2.2/middlewares/ratelimit/
# labels:
# - traefik.http.middlewares.demo-ratelimit.ratelimit.average=30
# - traefik.http.routers.minio.middlewares=demo-ratelimit
mender-gui:
environment:
# enable demo mode for UI ["true"/"false"]
DEMO: "true"
mender-workflows-server:
command: server --automigrate
mender-workflows-worker:
command: worker --automigrate --excluded-workflows generate_artifact,generate_delta_artifact
mender-create-artifact-worker:
command: --automigrate
environment:
- CREATE_ARTIFACT_SKIPVERIFY=1