-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose-monitoring.yml
65 lines (60 loc) · 1.73 KB
/
docker-compose-monitoring.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
version: "3"
services:
prometheus:
image: prom/prometheus:v2.37.6
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
- "--web.enable-lifecycle"
ports:
- "9090:9090"
networks:
- dhruva-network
grafana:
image: grafana/grafana:9.4.3
container_name: grafana
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_USER=$GRAFANA_ADMIN_USER
- GF_SECURITY_ADMIN_PASSWORD=$GRAFANA_ADMIN_PASSWORD
- GF_SERVER_ROOT_URL=$NEXT_PUBLIC_GRAFANA_URL
- GF_USERS_ALLOW_SIGN_UP=false
- GF_FEATURE_TOGGLES_ENABLE=publicDashboards
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_NAME=PublicMonitoring
- GF_SECURITY_ALLOW_EMBEDDING=true
- GF_SECURITY_COOKIE_SECURE=$GRAFANA_SECURE_COOKIE
restart: unless-stopped
ports:
- "4000:3000"
env_file:
- .env
networks:
- dhruva-network
prom-aggregation-gateway:
container_name: prom-aggregation-gateway
image: ghcr.io/zapier/prom-aggregation-gateway:v0.7.0
volumes:
- prometheus_data:/prom-agg-gateway
ports:
- "8081:80"
env_file:
- .env
environment:
- PAG_AUTHUSERS=$PAG_AUTHUSERS
networks:
- dhruva-network
volumes:
grafana_data: {}
prometheus_data: {}
networks:
dhruva-network:
name: dhruva-network