Skip to content

Commit 021ca67

Browse files
Update compose.yaml
1 parent af35e82 commit 021ca67

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-prometheus-grafana-example/compose.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ services:
1010
SPRING_PROFILES_ACTIVE: prd
1111
ports:
1212
- "80:80"
13-
depends_on:
14-
- prometheus
15-
- grafana
1613

1714
prometheus:
1815
container_name: prometheus
@@ -23,6 +20,8 @@ services:
2320
- ./docker/prometheus.yml:/etc/prometheus/prometheus.yml
2421
command:
2522
- '--config.file=/etc/prometheus/prometheus.yml'
23+
depends_on:
24+
- app
2625

2726
grafana:
2827
container_name: grafana

0 commit comments

Comments
 (0)