-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (59 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
65 lines (59 loc) · 1.68 KB
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
version: '3.8'
volumes:
grafana_data: {}
prometheus_data: {}
services:
pushgateway:
image: prom/pushgateway:latest
restart: unless-stopped
ports:
- ${PUSH_BIND:-127.0.0.1}:${PUSH_PORT:-9091}:9091
expose:
- 9091
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
user: root
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ${PROM_DATA:-prometheus_data}:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
ports:
- ${PROM_BIND:-127.0.0.1}:${PROM_PORT:-9090}:9090
expose:
- 9090
grafana:
image: grafana/grafana:latest
restart: unless-stopped
user: "472"
depends_on:
- prometheus
ports:
- ${GRAFANA_PORT:-3000}:3000
expose:
- 3000
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./dashboards:/etc/dashboards
environment:
- GF_AUTH_LOGIN_COOKIE_NAME=${NAME:-local}-grafana
- GF_RENDERING_SERVER_URL=http://grafana-renderer:8081/render
- GF_RENDERING_CALLBACK_URL=http://grafana:${GRAFANA_PORT:-3000}/
- GF_DASHBOARDS_MIN_REFRESH_INTERVAL=1s
grafana-renderer:
image: grafana/grafana-image-renderer:latest
ports:
- 8081
pushgateway-cleaner:
image: pwojcikdev/prometheus-pushgateway-cleaner
restart: unless-stopped
command:
- '-address=http://pushgateway:9091'
- '-ttl=0h0m10s'
- '-debug=true'