forked from rubenwap/metrics-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1.08 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
version: "3"
services:
metricsweb:
container_name: metricsweb
build: .
ports:
- 5000:5000
depends_on:
- influxdb
grafana:
container_name: grafana
image: grafana/grafana:latest
ports:
- 3000:3000
volumes:
- ./grafana/data:/var/lib/grafana
influxdb:
container_name: influxdb
image: influxdb:latest
ports:
- 8086:8086
env_file:
- 'env.influxdb'
volumes:
- ./influxdb/data:/var/lib/influxdb
telegraf:
container_name: telegraf
image: telegraf
container_name: telegraf
restart: always
depends_on:
- influxdb
environment:
HOST_PROC: /rootfs/proc
HOST_SYS: /rootfs/sys
HOST_ETC: /rootfs/etc
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro