Add rabbitmq healthchecks

This commit is contained in:
Zoe Roux
2024-03-20 23:12:15 +01:00
parent a5c7aef3b8
commit 22d0d064f7
3 changed files with 51 additions and 0 deletions
+17
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: