-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yaml
46 lines (41 loc) · 1.17 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
version: "3"
networks:
public: {}
volumes:
grafana_lib: {}
prometheus_data: {}
prometheus_config:
driver_opts:
type: tmpfs
device: tmpfs
services:
prometheus:
image: prom/prometheus:v2.19.0
ports:
- 9090:9090
networks:
- public
volumes:
- prometheus_data:/prometheus
- prometheus_config:/fragments/
- ${PWD}/prometheus-server/config/targets/prometheus.json:/etc/prometheus/targets/prometheus.json
- ${PWD}/prometheus-server/config/targets/grafana.json:/etc/prometheus/targets/grafana.json
command:
- '--config.file=/fragments/complete/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
grafana:
image: grafana/grafana:7.0.3
ports:
- "3000:3000"
networks:
- public
volumes:
- grafana_lib:/var/lib/grafana
- ${PWD}/prometheus-server/config/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
environment:
- GF_SECURITY_ADMIN_PASSWORD=secret
config-concat:
image: deanwilson/promconf-concat:0.1.0
volumes:
- prometheus_config:/fragments/
- ${PWD}/prometheus-server/config/base_prometheus.yml:/base_prometheus.yml