-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 870 Bytes
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
version: '3.8'
services:
telegraf:
image: telegraf:1.8
container_name: telegraf
hostname: telegraf
restart: always
network_mode: "host"
volumes:
- ./telegraf/config/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /usr/share/snmp/mibs:/usr/share/snmp/mibs:ro
- /:/hostfs:ro
influxdb:
image: influxdb:1.8
container_name: influxdb
hostname: influxdb
restart: always
ports:
- "8086:8086"
volumes:
- ./influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- ./influxdb/library:/var/lib/influxdb
command: -config /etc/influxdb/influxdb.conf
grafana:
image: grafana/grafana:latest
container_name: grafana
hostname: grafana
restart: always
ports:
- "3000:3000"
volumes:
- ./grafana/config:/etc/grafana
- ./grafana/library:/var/lib/grafana