-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.78 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
66
version: "3.8"
services:
grafana:
image: grafana/grafana:10.4.0
container_name: post-incident-proofs-grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER:?set-in-env}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:?set-in-env}
volumes:
- ./dashboards:/etc/grafana/provisioning/dashboards
- ./datasources:/etc/grafana/provisioning/datasources
- grafana-storage:/var/lib/grafana
restart: unless-stopped
prometheus:
image: prom/prometheus:v2.53.0
container_name: post-incident-proofs-prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./alerts.yml:/etc/prometheus/alerts.yml
- 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"
- "--storage.tsdb.retention.time=200h"
- "--web.enable-lifecycle"
restart: unless-stopped
loki:
image: grafana/loki:3.0.0
container_name: post-incident-proofs-loki
ports:
- "3100:3100"
volumes:
- loki-data:/loki
command: -config.file=/etc/loki/local-config.yaml
restart: unless-stopped
post-incident-proofs:
build: .
container_name: post-incident-proofs-app
ports:
- "8080:8080"
environment:
- LOG_LEVEL=INFO
- HMAC_KEY_FILE=/app/keys/hmac.key
- APP_HMAC_KEY=${APP_HMAC_KEY:?set-in-env}
volumes:
- ./logs:/app/logs
- ./keys:/app/keys
depends_on:
- prometheus
- loki
restart: unless-stopped
volumes:
grafana-storage:
prometheus-data:
loki-data: