From 485a08c841572735bffe4f7001cf97a615e8ad29 Mon Sep 17 00:00:00 2001 From: Oliver Meyer Date: Tue, 14 May 2024 22:55:33 +0200 Subject: [PATCH] fix: add healthcheck for api service --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 850795ec2..e486206dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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}