Skip to content

Commit 4742065

Browse files
committed
added health check
1 parent a9c9d10 commit 4742065

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docker-compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,15 @@ services:
1313
# - .:/usr/src/app
1414
ports:
1515
- "3000:3000"
16+
healthcheck:
17+
test:
18+
- CMD
19+
- wget
20+
- "-q"
21+
- "--spider"
22+
- "http://127.0.0.1:3000"
23+
interval: 1m30s
24+
timeout: 10s
25+
retries: 3
26+
start_period: 40s
27+
start_interval: 5s

0 commit comments

Comments
 (0)