feat: add healh-check like endpoint, support of healthcheck in docker compose

This commit is contained in:
2023-12-21 17:49:35 +02:00
parent cf9a1e7bec
commit f6cdd806b2
13 changed files with 193 additions and 4 deletions

View File

@ -25,6 +25,11 @@ services:
volume:
nocopy: true
healthcheck:
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
interval: 10s
start_period: 30s
command: web
frontend:
@ -46,8 +51,6 @@ services:
worker:
image: arcan1s/ahriman:edge
depends_on:
- backend
privileged: true
environment:
@ -63,6 +66,10 @@ services:
volume:
nocopy: true
depends_on:
backend:
condition: service_healthy
command: repo-daemon --dry-run
configs:

View File

@ -25,6 +25,11 @@ services:
volume:
nocopy: true
healthcheck:
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
interval: 10s
start_period: 30s
command: web
frontend:

View File

@ -25,6 +25,11 @@ services:
volume:
nocopy: true
healthcheck:
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
interval: 10s
start_period: 30s
command: web
frontend:
@ -67,6 +72,11 @@ services:
secrets:
- password
healthcheck:
test: curl --fail --silent --output /dev/null http://worker:8080/api/v1/info
interval: 10s
start_period: 30s
command: web
configs:

View File

@ -33,6 +33,11 @@ services:
volume:
nocopy: true
healthcheck:
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
interval: 10s
start_period: 30s
command: web
frontend:

View File

@ -26,6 +26,11 @@ services:
volume:
nocopy: true
healthcheck:
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
interval: 10s
start_period: 30s
command: web
frontend:

View File

@ -25,6 +25,11 @@ services:
volume:
nocopy: true
healthcheck:
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
interval: 10s
start_period: 30s
command: web
frontend: