Fixing issue with docker run

This commit is contained in:
Pranav Prakash 2025-05-16 21:51:12 +05:30
parent 36b2513ecd
commit 29ebcace56
1 changed files with 20 additions and 3 deletions

View File

@ -1,8 +1,8 @@
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
# ports:
# - "6379:6379"
volumes:
- redis-data:/data
command: redis-server --save 60 1 --loglevel warning
@ -12,6 +12,20 @@ services:
timeout: 5s
retries: 3
rabbitmq:
image: rabbitmq
# ports:
# - "127.0.0.1:5672:5672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
restart: unless-stopped
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
backend:
build:
context: ./backend
@ -29,6 +43,8 @@ services:
depends_on:
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
frontend:
build:
@ -45,4 +61,5 @@ services:
- backend
volumes:
redis-data:
redis-data:
rabbitmq_data: