fix: add healthcheck for api service
This commit is contained in:
parent
45d91b7ff0
commit
485a08c841
|
@ -94,6 +94,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${LIBRETIME_CONFIG_FILEPATH:-./config.yml}:/etc/libretime/config.yml:ro
|
- ${LIBRETIME_CONFIG_FILEPATH:-./config.yml}:/etc/libretime/config.yml:ro
|
||||||
- libretime_storage:/srv/libretime
|
- libretime_storage:/srv/libretime
|
||||||
|
healthcheck:
|
||||||
|
test: python3 -c "import requests; requests.get('http://localhost:9001/api/v2/version').raise_for_status()"
|
||||||
|
|
||||||
legacy:
|
legacy:
|
||||||
image: ghcr.io/libretime/libretime-legacy:${LIBRETIME_VERSION:-latest}
|
image: ghcr.io/libretime/libretime-legacy:${LIBRETIME_VERSION:-latest}
|
||||||
|
|
Loading…
Reference in New Issue