-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (44 loc) · 1.05 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
version: '2'
services:
mosquitto:
image: toke/mosquitto
container_name: homie-mqtt
restart: always
# expose:
# - 1883
ports:
- 1883:1883
- 9001:9001 #eventually useful for websocket connections
volumes:
- ./etc/mosquitto:/mqtt/data
monitor:
image: python:2.7
container_name: homie-monitor
links:
- mosquitto:mqtt
ports:
- 8080:8080
volumes:
- .:/usr/local/var/monitor
working_dir: /usr/local/var/monitor
entrypoint: sh scripts/start-monitor.sh
command: python src-monitor/monitor.py
restart: always
monitor-ui:
image: node
container_name: homie-monitor-ui
environment:
- NODE_ENV=development
ports:
- 3000:3000
- 35729:35729 #webpack-dev-server
links:
- monitor:monitor
- mosquitto:mqtt
volumes:
- .:/usr/local/var/monitor
- /usr/local/var/monitor/node_modules
working_dir: /usr/local/var/monitor
entrypoint: sh scripts/start-monitor-ui.sh
command: npm run start
restart: always