From 29ebcace563c2d575b6b4bf7379ceb8800e7b1ec Mon Sep 17 00:00:00 2001 From: Pranav Prakash Date: Fri, 16 May 2025 21:51:12 +0530 Subject: [PATCH 1/2] Fixing issue with docker run --- docker-compose.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e47b3290..d6be6b89 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: \ No newline at end of file + redis-data: + rabbitmq_data: \ No newline at end of file From 29bacdd55f3468d5d020dfb4d63782c541840c73 Mon Sep 17 00:00:00 2001 From: Pranav Prakash Date: Fri, 16 May 2025 22:31:59 +0530 Subject: [PATCH 2/2] uncommenting redis port expose --- docker-compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d6be6b89..84f7f7da 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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