-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (62 loc) · 1.57 KB
/
docker-compose.yaml
File metadata and controls
64 lines (62 loc) · 1.57 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "2"
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- 3000:3000
networks:
- monitoring
volumes:
- grafana-volume:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning
- ./grafana/dashboards/:/etc/grafana/dashboards
depends_on:
- influxdb
influxdb:
image: influxdb:1.8
container_name: influxdb
restart: always
ports:
- 8086:8086
networks:
- monitoring
volumes:
- influxdb-volume:/var/lib/influxdb
environment:
- INFLUXDB_REPORTING_DISABLED=true
- INFLUXDB_DB=telegraf
- INFLUXDB_HTTP_AUTH_ENABLED=false
- INFLUXDB_USER=telegraf
- INFLUXDB_USER_PASSWORD=changeme
- INFLUXDB_ADMIN_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=changeme
- INFLUXDB_HTTP_FLUX_ENABLED=true
telegraf:
image: telegraf
container_name: telegraf
command: telegraf --config-directory /etc/telegraf/telegraf.d
restart: always
networks:
- monitoring
env_file:
- config.env
environment:
HOST_MOUNT_PREFIX: /rootfs
HOST_VAR: /rootfs/var
HOST_RUN: /rootfs/run
HOST_PROC: /rootfs/proc
HOST_SYS: /rootfs/sys
HOST_ETC: /rootfs/etc
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- ./telegraf/telegraf.d:/etc/telegraf/telegraf.d:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /:/rootfs:ro
networks:
monitoring:
volumes:
grafana-volume:
influxdb-volume: