install rabbitMQ on docker

This commit is contained in:
2025-03-30 03:57:49 +02:00
parent 70d596acf0
commit 4afc4fa353
5 changed files with 31 additions and 3 deletions

View File

@@ -34,6 +34,19 @@ services:
volumes:
- postgresql_data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:4-management-alpine
environment:
RABBITMQ_DEFAULT_USER: event-demo
RABBITMQ_DEFAULT_PASS: changeit
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 10s
timeout: 10s
retries: 5
volumes:
- rabbitmq_data:/var/lib/rabbitmq/
secrets:
postgresql_password:
file: ../postgresql.secret
@@ -41,4 +54,5 @@ secrets:
volumes:
redis_data:
redisinsight_data:
postgresql_data:
postgresql_data:
rabbitmq_data: