-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
47 lines (44 loc) · 1.06 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
version: "2"
services:
influxdb:
container_name: influxdb
image: influxdb
ports:
- "8086:8086"
volumes:
- /tig/data/influxdb:/var/lib/influxdb
- /tig/conf/influxdb:/etc/influxdb/
restart: always
telegraf:
container_name: telegraf
image: telegraf
network_mode: "host"
volumes:
- /tig/conf/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
- /var/run/docker.sock:/var/run/docker.sock
restart: always
grafana:
container_name: grafana
image: grafana/grafana
user: "0"
ports:
- "3000:3000"
volumes:
- /tig/data/grafana:/var/lib/grafana
- /tig/log/grafana:/var/log/grafana
- /tig/conf/grafana/grafana.ini:/etc/grafana/grafana.ini
links:
- influxdb
restart: always
mqtt:
container_name: mqtt
image: eclipse-mosquitto:latest
user: "0"
ports:
- "1883:1883"
- "9001:9001"
volumes:
- /tig/conf/mqtt/:/mosquitto/config/
- /tig/data/mqtt/:/mosquitto/data/
- /tig/log/mqtt/:/mosquitto/log/
restart: always