Skip to content

Commit 2cc9c46

Browse files
app depends on db
1 parent 8899010 commit 2cc9c46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samples/golang-mongodb/compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ services:
2020
# memory: 256M
2121
healthcheck:
2222
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
23+
depends_on:
24+
- db
25+
2326
db:
2427
image: mongo:8.0.3
2528
restart: unless-stopped

0 commit comments

Comments
 (0)