rabbitmq docker instance
This commit is contained in:
+31
-2
@@ -39,6 +39,8 @@ services:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "80:8000"
|
||||
entrypoint: ["./entrypoint.sh", "--dev"]
|
||||
@@ -76,11 +78,13 @@ services:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "80:8000"
|
||||
|
||||
psql:
|
||||
profiles: ["prod", "dev", "db"]
|
||||
profiles: ["prod", "dev", "local"]
|
||||
image: postgres:16-alpine
|
||||
container_name: psql
|
||||
init: true
|
||||
@@ -106,7 +110,7 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
profiles: ["prod", "dev", "redis"]
|
||||
profiles: ["prod", "dev", "local"]
|
||||
container_name: redis
|
||||
init: true
|
||||
ipc: private
|
||||
@@ -121,6 +125,31 @@ services:
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- backend
|
||||
|
||||
rabbitmq:
|
||||
image: rabbitmq:3-management-alpine
|
||||
profiles: ["prod", "dev", "local"]
|
||||
container_name: rabbitmq_broker
|
||||
restart: always
|
||||
init: true
|
||||
ipc: private
|
||||
environment:
|
||||
- RABBITMQ_DEFAULT_USER=${RABBITMQ_LOGIN}
|
||||
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
|
||||
ports:
|
||||
- "${RABBITMQ_PORT}:5672"
|
||||
- "${RABBITMQ_PORT_UI}:15672"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ../RTMQ
|
||||
target: /var/lib/rabbitmq
|
||||
healthcheck:
|
||||
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- backend
|
||||
|
||||
networks:
|
||||
backend:
|
||||
|
||||
Reference in New Issue
Block a user