forked from iits-consulting/otc-prometheus-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (32 loc) · 940 Bytes
/
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
version: "3.9"
services:
otc-prometheus-exporter:
build: .
ports:
- "$PORT:$PORT"
environment:
NAMESPACES: "$NAMESPACES"
PORT: "$PORT"
OS_USERNAME: "$OS_USERNAME"
OS_PASSWORD: "$OS_PASSWORD"
OS_ACCESS_KEY: "$OS_ACCESS_KEY"
OS_SECRET_KEY: "$OS_SECRET_KEY"
OS_PROJECT_ID: "$OS_PROJECT_ID"
OS_DOMAIN_NAME: "$OS_DOMAIN_NAME"
FETCH_RESOURCE_ID_TO_NAME: "$FETCH_RESOURCE_ID_TO_NAME"
LOGGING: "$LOGGING"
prometheus:
image: "prom/prometheus:latest"
ports:
- "9090:9090"
command:
- '--config.file=/tmp/prometheus/prometheus.yaml'
volumes:
- "./docker.local/prometheus:/tmp/prometheus"
grafana:
image: "grafana/grafana:latest"
ports:
- "3000:3000"
volumes:
- "./docker.local/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources"
- "./docker.local/grafana/data:/var/lib/grafana"