-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
77 lines (71 loc) · 1.82 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3'
services:
dispatcher:
image: realmq/realmq-dispatcher:0.8.0
volumes:
- certificates-volume:/data/certificates
ports:
- ${PORT_HTTP:-80}:80
- ${PORT_HTTPS:-443}:443
environment:
- TLD=${DOMAIN:-realmq.local}
- TLS_CERT=/data/certificates/${DOMAIN:-realmq.local}.crt.pem
- TLS_CERT_KEY=/data/certificates/${DOMAIN:-realmq.local}.key.pem
- TLS_CERT_ROOT=/data/certificates/root.crt.pem
depends_on:
- broker
- certificates
- platform
platform:
build:
context: .
command: npm run start-debug
restart: always
ports:
- ${PORT:-8080}:${PORT:-8080}
- 9229:9229
volumes:
- .:/usr/src/app
environment:
- PORT=${PORT:-8080}
- LOG_LEVEL=${LOG_LEVEL:-debug}
- BROKER_HOST=broker
- BROKER_USERNAME=adapter
- BROKER_PASSWORD=adapter
- API_BROKER_KEY=broker-key
- API_ADMIN_KEY=${API_ADMIN_KEY}
depends_on:
- broker
- database
database:
image: bitnami/mongodb
volumes:
- database-volume:/bitnami
ports:
- 27017:27017
environment:
- MONGODB_ROOT_PASSWORD=root
- MONGODB_USERNAME=realmq
- MONGODB_PASSWORD=realmq
- MONGODB_DATABASE=realmq
broker:
image: realmq/realmq-broker:0.8.0
ports:
- 1883:1883
environment:
- HOST=0.0.0.0
- ADAPTER_KEY=broker-key
- ADAPTER_HOST=platform
- ADAPTER_PORT=${PORT:-8080}
- CREDENTIALS=adapter:adapter
- VERNEMQ_ACCEPT_EULA=${VERNEMQ_ACCEPT_EULA:-no}
certificates:
image: realmq/dev-ca:0.1.0
volumes:
- certificates-volume:/data/certificates
environment:
- DOMAIN=${DOMAIN:-realmq.local}
- SAN=api.${DOMAIN:-realmq.local} rtm.${DOMAIN:-realmq.local}
volumes:
database-volume:
certificates-volume: