add healthcheck to kontor-api and docker-compose.yml
This commit is contained in:
+6
-2
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user