forked from devicehive/devicehive-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmqtt-brokers.yml
38 lines (35 loc) · 927 Bytes
/
mqtt-brokers.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
version: '3'
services:
dh_proxy:
ports:
- "1883:1883"
links:
- mqtt_broker1
- mqtt_broker2
volumes:
- "./nginx-mqtt-brokers.conf:/etc/nginx/stream.d/nginx-mqtt-brokers.conf:ro,Z"
mqtt_broker1:
image: devicehive/devicehive-mqtt:1.1.0
links:
- dh_frontend
- redis
restart: unless-stopped
environment:
- BROKER.WS_SERVER_URL=ws://dh_frontend:8080/api/websocket
- BROKER.REDIS_SERVER_HOST=redis
- BROKER.REDIS_SERVER_PORT=6379
- BROKER.ENABLE_PM=false
mqtt_broker2:
image: devicehive/devicehive-mqtt:1.1.0
links:
- dh_frontend
- redis
restart: unless-stopped
environment:
- BROKER.WS_SERVER_URL=ws://dh_frontend:8080/api/websocket
- BROKER.REDIS_SERVER_HOST=redis
- BROKER.REDIS_SERVER_PORT=6379
- BROKER.ENABLE_PM=false
redis:
image: redis:alpine
restart: unless-stopped