File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ services:
14
14
15
15
postgres :
16
16
image : postgres:16-alpine
17
- container_name : postgres-server
17
+ container_name : postgres
18
18
environment :
19
19
POSTGRES_USER : ${DB_USER}
20
20
POSTGRES_PASSWORD : ${DB_PASSWORD}
@@ -30,6 +30,16 @@ services:
30
30
interval : 2s
31
31
timeout : 5s
32
32
retries : 5
33
+
34
+ prometheus :
35
+ image : prom/prometheus:v2.54.1
36
+ container_name : prometheus
37
+ ports :
38
+ - 9090:9090
39
+ volumes :
40
+ - ./prometheus.yml:/etc/prometheus/prometheus.yml
41
+ networks :
42
+ - shared-network
33
43
34
44
networks :
35
45
shared-network :
Original file line number Diff line number Diff line change
1
+ global :
2
+ scrape_interval : 30s
3
+
4
+ scrape_configs :
5
+ - job_name : ' prometheus'
6
+ static_configs :
7
+ - targets : ['backend:8081']
You can’t perform that action at this time.
0 commit comments