forked from samuelebistoletti/docker-statsd-influxdb-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (81 loc) · 1.87 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.9"
volumes:
influxdb_data: {}
postgres_data: {}
grafana_data: {}
networks:
influx:
name: influx-frontend
postgres:
external: false
services:
influxdb:
container_name: dsig-influx
image: influxdb:${INFLUXDB_VERSION}
networks:
- influx
ports:
- 8086:8086
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8086/ping"]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
restart: always
env_file:
- ./influxdb/influxdb.env
volumes:
- influxdb_data:/var/lib/influxdb2
- ./influxdb/config.yml:/etc/influxdb2/config.yml
telegraf:
container_name: dsig-telegraf
image: telegraf:${TELEGRAF_VERSION}
profiles: ["telegraf"]
networks:
- influx
ports:
- 8125:8125/udp
restart: always
depends_on:
- influxdb
env_file:
- ./telegraf/telegraf.env
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
postgres:
container_name: dsig-postgres
image: bitnami/postgresql:${POSTGRES_VERSION}
profiles: ["grafana"]
networks:
- postgres
restart: always
env_file:
- ./postgres/postgres.env
volumes:
- postgres_data:/bitnami/postgresql
grafana:
container_name: dsig-grafana
image: grafana/grafana-enterprise:${GRAFANA_VERSION}
profiles: ["grafana"]
networks:
- postgres
- influx
ports:
- 3000:3000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
restart: always
depends_on:
- postgres
- influxdb
env_file:
- ./grafana/grafana.env
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/etc/dashboards