Add rabbitmq healthchecks

This commit is contained in:
Zoe Roux 2024-03-20 23:12:15 +01:00
parent a5c7aef3b8
commit 22d0d064f7
No known key found for this signature in database
3 changed files with 51 additions and 0 deletions

View File

@ -35,6 +35,8 @@ services:
condition: service_healthy
meilisearch:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- ./back:/app
- /app/out/
@ -71,6 +73,15 @@ services:
volumes:
- ${LIBRARY_ROOT}:/video:ro
autosync:
build: ./autosync
restart: on-failure
depends_on:
rabbitmq:
condition: service_healthy
env_file:
- ./.env
transcoder:
<<: *transcoder-base
profiles: ['']
@ -160,6 +171,12 @@ services:
ports:
- 5672:5672
- 15672:15672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
volumes:
kyoo:

View File

@ -26,6 +26,8 @@ services:
condition: service_healthy
meilisearch:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- kyoo:/kyoo
@ -48,6 +50,15 @@ services:
volumes:
- ${LIBRARY_ROOT}:/video:ro
autosync:
build: ./autosync
restart: on-failure
depends_on:
rabbitmq:
condition: service_healthy
env_file:
- ./.env
transcoder:
<<: *transcoder-base
profiles: ['']
@ -132,6 +143,12 @@ services:
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
ports:
- 5672:5672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
volumes:
kyoo:

View File

@ -25,6 +25,8 @@ services:
condition: service_healthy
meilisearch:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- kyoo:/kyoo
@ -47,6 +49,15 @@ services:
volumes:
- ${LIBRARY_ROOT}:/video:ro
autosync:
build: ./autosync
restart: on-failure
depends_on:
rabbitmq:
condition: service_healthy
env_file:
- ./.env
transcoder:
<<: *transcoder-base
profiles: ['']
@ -131,6 +142,12 @@ services:
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
ports:
- 5672:5672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
volumes:
kyoo: