add healthcheck to kontor-api and docker-compose.yml

This commit is contained in:
Thomas Peetz
2025-11-06 16:37:41 +01:00
parent f3e47126b3
commit 4a2048c378
10 changed files with 55 additions and 18 deletions
+6 -2
View File
@@ -41,6 +41,11 @@ services:
- kontor-api:0.2.0-SNAPSHOT
image: kontor-api:0.2.0-SNAPSHOT
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://kontor-api:8800/health"]
interval: 10s
timeout: 5s
retries: 3
networks:
- database
- integration
@@ -67,7 +72,7 @@ services:
ports:
- 8200:80
depends_on:
postgres:
kontor-api:
condition: service_healthy
kontor-vue:
build:
@@ -95,4 +100,3 @@ networks:
volumes:
activemq-data:
images-data: