-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (54 loc) · 1.47 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
version: "2"
services:
n3uron:
image: n3uronhub/n3uron:v1.21.10
ports:
- 80:8003 # HTTP WebUI for balena
- 8003:8003 # HTTP WebUI
- 8443:8443 # HTTPS WebUI
- 8004:8004 # HTTP WebVision
- 8444:8444 # HTTPS WebVision
volumes:
- n3_config:/opt/n3uron/config
- n3_data:/opt/n3uron/data
- n3_licenses:/opt/n3uron/licenses
- n3_log:/opt/n3uron/log
cap_add:
- SYS_ADMIN
- SYS_RAWIO
restart: always
mqtt:
image: eclipse-mosquitto:1.6
ports:
- 1883:1883
restart: always
telegraf:
image: telegraf:1.31
entrypoint: >
sh -c "echo '[[outputs.influxdb_v2]]\nurls = [\"http://influxdb:8086\"]\ntoken = \"$DOCKER_INFLUXDB_INIT_ADMIN_TOKEN\"\norganization = \"N3uron\"\nbucket = \"demo\"\n[[inputs.mqtt_consumer]]\nservers = [\"tcp://mqtt:1883\"]\ntopics = [\"N3URON/BLUELAKE/\"]\ndata_format = \"influx\"' >> /etc/telegraf/telegraf.conf && telegraf --config /etc/telegraf/telegraf.conf"
restart: always
influxdb:
image: influxdb:2.7
ports:
- 8086:8086
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
volumes:
- influx_config:/etc/influxdb2
- influx_data:/var/lib/influxdb2
restart: always
grafana:
image: grafana/grafana-oss:10.2.8
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
restart: always
volumes:
n3_config:
n3_data:
n3_licenses:
n3_log:
influx_config:
influx_data:
grafana_data: