add healthcheck examples

This commit is contained in:
2023-06-23 10:15:31 +02:00
parent 97741ed73f
commit 22d4efb03e
3 changed files with 27 additions and 2 deletions

View File

@@ -16,3 +16,10 @@ services:
- redis
ports:
- 1234:8000
healthcheck:
test: ["CMD", "curl", "--fail", "http://127.0.0.1:8000/api/live/"]
interval: 1m
timeout: 3s
retries: 2
start_period: 5s