forked from janvda/balena-node-red-mqtt-nginx-TIG-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (79 loc) · 1.67 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
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
version: '2'
volumes:
node-red-data:
node-red-test-data:
influxdb-data:
services:
influxdb:
build: influxdb
container_name: influxdb
# privileged added so usb drive can be mounted.
privileged: true
volumes:
# take care that the mount location "/mnt/influxdb" becomes overwritten
# by the mount location specified in the influxdb Dockerfile.
- 'influxdb-data:/mnt/influxdb'
ports:
# The API for InfluxDB is served on port 8086
- "8082:8082"
- "8086:8086"
# UDP Port
- "8089:8089"
restart: always
telegraf:
# Full tag list: https://hub.docker.com/r/library/telegraf/tags/
build : telegraf
pid: "host"
network_mode: "host"
privileged: true
labels:
io.resin.features.balena-socket: '1'
depends_on:
- influxdb
restart: always
environment:
- interval=60s
- flush_interval=60s
grafana:
build: grafana
ports:
- "3000:3000"
depends_on:
- influxdb
restart: always
mqtt:
image: panuwitp/mosquitto-arm
ports:
- "1883:1883"
mqtt-test:
image: panuwitp/mosquitto-arm
ports:
- "1884:1883"
node-red:
build: node-red
volumes:
- 'node-red-data:/data'
ports:
- "1880:1880"
depends_on:
- mqtt
restart: always
node-red-test:
build: node-red-test
volumes:
- 'node-red-test-data:/data'
ports:
- "1882:1880"
depends_on:
- mqtt-test
restart: always
nginx:
build : nginx
depends_on:
- grafana
- node-red
- node-red-test
ports:
- "80:80"
- "443:443"
restart: always