Add timeout to healthcheck

This commit is contained in:
Michael Shamoon
2022-05-02 14:20:47 -07:00
parent 98ebb095cc
commit 49644ce18a
5 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ services:
ports:
- 8000:8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 5