-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yaml
64 lines (58 loc) · 1.22 KB
/
docker-compose.yaml
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: "3"
services:
indexer:
image: postgres
storage:
image: redis
gnocchi-metricd:
image: gnocchi
environment:
POSTGRESQL_USER: postgres
build:
context: gnocchi
args:
package_name: "${GNOCCHI_PACKAGE_NAME:-gnocchi}"
depends_on:
- indexer
- storage
volumes:
- metrics-volume:/var/lib/gnocchi
entrypoint: /run-gnocchi.sh metricd
gnocchi-api:
image: gnocchi
environment:
POSTGRESQL_USER: postgres
build:
context: gnocchi
args:
package_name: "${GNOCCHI_PACKAGE_NAME:-gnocchi}"
ports:
- "8041:8041"
depends_on:
- indexer
- storage
- gnocchi-metricd
volumes:
- metrics-volume:/var/lib/gnocchi
entrypoint: /run-gnocchi.sh api
grafana:
image: gnocchixyz/grafana
build:
context: grafana
environment:
- GNOCCHI_RATE_SUPPORT
- GRAFANA_PLUGIN_URL
- GF_SECURITY_ADMIN_PASSWORD=password
- GF_GNOCCHI_ENDPOINT=http://gnocchi:8041
ports:
- "3000:3000"
depends_on:
- gnocchi-api
volumes:
- grafana-volume:/var/lib/grafana
links:
- "gnocchi-api:gnocchi"
volumes:
metrics-volume:
grafana-volume: