-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathdocker-compose.yaml
48 lines (43 loc) · 930 Bytes
/
docker-compose.yaml
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
version: '3.1'
services:
influxdb:
image: influxdb:latest
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
environment:
- INFLUXDB_DB=sensors
- INFLUXDB_USER=telegraf
- INFLUXDB_USER_PASSWORD=telegraf
volumes:
- influxdb-storage:/var/lib/influxdb
telegraf:
image: telegraf:latest
container_name: telegraf
links:
- influxdb
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
links:
- influxdb
depends_on:
- influxdb
volumes:
- grafana-storage:/var/lib/grafana
mosquitto:
image: eclipse-mosquitto
hostname: mosquitto
container_name: mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
influxdb-storage:
grafana-storage: