-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.9'
networks:
monitoring-local:
volumes:
influxdb-data:
influxdb-config:
grafana-data:
services:
influxdb:
image: influxdb:2.1-alpine
networks:
- monitoring-local
ports:
- "${INFLUXDB_HOST_PORT}:8086"
volumes:
- influxdb-data:/var/lib/influxdb2
- influxdb-config:/etc/influxdb2
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: ${INFLUXDB_USERNAME}
DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_PASSWORD}
DOCKER_INFLUXDB_INIT_ORG: ${INFLUXDB_ORG}
DOCKER_INFLUXDB_INIT_BUCKET: ${INFLUXDB_BUCKET}
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_TOKEN}
grafana:
image: grafana/grafana-oss
depends_on:
- influxdb
networks:
- monitoring-local
ports:
- "${GRAFANA_HOST_PORT}:3000"
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- grafana-data:/var/lib/grafana
environment:
GF_INSTALL_PLUGINS: ${GRAFANA_PLUGINS}
GF_SECURITY_ADMIN_USER: ${GRAFANA_USERNAME}
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD}
INFLUXDB_TOKEN: ${INFLUXDB_TOKEN}
INFLUXDB_ORG: ${INFLUXDB_ORG}
INFLUXDB_BUCKET: ${INFLUXDB_BUCKET}
telegraf:
image: telegraf
depends_on:
- influxdb
networks:
- monitoring-local
ports:
- "${TELEGRAF_STATSD_PORT}:8125/udp"
volumes:
- $PWD/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
environment:
INFLUXDB_HOST_PORT: ${INFLUXDB_HOST_PORT}
INFLUXDB_TOKEN: ${INFLUXDB_TOKEN}
INFLUXDB_ORG: ${INFLUXDB_ORG}
INFLUXDB_BUCKET: ${INFLUXDB_BUCKET}