-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 924 Bytes
/
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
version: "3"
networks:
saunalog:
services:
mosquitto:
image: eclipse-mosquitto
deploy:
restart_policy:
condition: on-failure
ports:
- "1883:1883"
networks:
- saunalog
# volumes:
# - ./mosquitto.conf:/mosquitto/config/mosquitto.conf
influxdb:
image: influxdb:latest
deploy:
placement:
constraints: [node.role == manager]
restart_policy:
condition: on-failure
networks:
- saunalog
volumes:
- /srv/docker/influxdb/data:/var/lib/influxdb
telegraf:
image: telegraf:latest
networks:
- saunalog
depends_on:
- influxdb
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
grafana:
image: grafana/grafana:latest
depends_on:
- influxdb
ports:
- "3000"
networks:
- saunalog
volumes:
- /srv/docker/grafana/data:/var/lib/grafana