-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (86 loc) · 2.32 KB
/
docker-compose.yml
File metadata and controls
95 lines (86 loc) · 2.32 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
# ── Application ────────────────────────────────────────────────────────────
backend:
build:
context: .
dockerfile: backend/dockerfile
env_file: .env
ports:
- "8000:8000"
depends_on:
- db
restart: unless-stopped
networks:
- temis
agent:
build:
context: .
dockerfile: agent/dockerfile
env_file: .env
ports:
- "9000:9000"
restart: unless-stopped
networks:
- temis
db:
image: postgres:16-alpine
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data
restart: unless-stopped
networks:
- temis
# ── Observability ──────────────────────────────────────────────────────────
prometheus:
image: prom/prometheus:v2.51.2
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.retention.time=15d
- --web.enable-lifecycle
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./infra/prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml:ro
- prometheus_data:/prometheus
ports:
- "9090:9090"
depends_on:
- backend
restart: unless-stopped
networks:
- temis
alertmanager:
image: prom/alertmanager:v0.27.0
command:
- --config.file=/etc/alertmanager/alertmanager.yml
- --storage.path=/alertmanager
env_file: .env
volumes:
- ./infra/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
- alertmanager_data:/alertmanager
ports:
- "9093:9093"
restart: unless-stopped
networks:
- temis
grafana:
image: grafana/grafana:10.4.2
env_file: .env
volumes:
- ./infra/grafana/provisioning:/etc/grafana/provisioning:ro
- ./infra/grafana/dashboards:/var/lib/grafana/dashboards:ro
- grafana_data:/var/lib/grafana
ports:
- "3000:3000"
depends_on:
- prometheus
restart: unless-stopped
networks:
- temis
volumes:
pg_data:
prometheus_data:
grafana_data:
alertmanager_data:
networks:
temis:
driver: bridge