fix: add healthcheck for api service

This commit is contained in:
Oliver Meyer 2024-05-14 22:55:33 +02:00
parent 45d91b7ff0
commit 485a08c841
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ services:
volumes:
- ${LIBRETIME_CONFIG_FILEPATH:-./config.yml}:/etc/libretime/config.yml:ro
- libretime_storage:/srv/libretime
healthcheck:
test: python3 -c "import requests; requests.get('http://localhost:9001/api/v2/version').raise_for_status()"
legacy:
image: ghcr.io/libretime/libretime-legacy:${LIBRETIME_VERSION:-latest}