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,11 @@ services:
SIZE_LIMIT: 4 MiB
ports:
- 80:8000
# Optional health checks
# healthcheck:
# test: ["CMD", "curl", "--fail", "http://127.0.0.1:8000/api/live/"]
# interval: 1m
# timeout: 3s
# retries: 2
# start_period: 5s