mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-28 06:41:43 +00:00
feat: add healh-check like endpoint, support of healthcheck in docker compose
This commit is contained in:
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user