-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
41 lines (41 loc) · 1.24 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
version: "3"
services:
redis:
image: "redis:alpine"
container_name: redis
ports:
- "6379:6379"
nginx:
build: ./nginx
container_name: nginx
links:
- broker1:broker1
- broker2:broker2
ports:
- "1883:8883"
broker1:
build: .
container_name: broker1
links:
- redis
environment:
- BROKER.WS_SERVER_URL=ws://playground.devicehive.com/api/websocket
- BROKER.REDIS_SERVER_HOST=redis
- BROKER.REDIS_SERVER_PORT=6379
- BROKER.ENABLE_PM=false
- BROKER.APP_LOG_LEVEL=debug
- BROKER.BROKER_PORT=1883
- DEBUG=subscriptionmanager,websocketfactory,websocketmanager
broker2:
build: .
container_name: broker2
links:
- redis
environment:
- BROKER.WS_SERVER_URL=ws://playground.devicehive.com/api/websocket
- BROKER.REDIS_SERVER_HOST=redis
- BROKER.REDIS_SERVER_PORT=6379
- BROKER.ENABLE_PM=false
- BROKER.APP_LOG_LEVEL=debug
- BROKER.BROKER_PORT=1883
- DEBUG=subscriptionmanager,websocketfactory,websocketmanager