Add RabbitMQ connect retry and healthcheck

This commit is contained in:
Nicolas Will
2024-06-15 00:39:21 +02:00
parent ea10403f6c
commit 1a574c2f7f
2 changed files with 26 additions and 3 deletions

View File

@@ -32,8 +32,10 @@ services:
networks:
- backend
healthcheck:
test: [ "CMD", "rabbitmqctl", "status" ]
interval: 1s
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
server:
build: