From ee1c9b3ab0ab89606a566bc5e1b81267c02ee6c5 Mon Sep 17 00:00:00 2001 From: RamkumarP Date: Wed, 11 Jun 2025 11:11:05 +0000 Subject: [PATCH] Update compose.yaml --- compose.yaml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/compose.yaml b/compose.yaml index fd26722..4c6d367 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,40 +1,34 @@ - services: api-server: build: context: ./ - dockerfile: src/api-server/Dockerfile + dockerfile: src/api-server/Dockerfile container_name: DwinzoApi_V0_end environment: NODE_ENV: development - # Connect to the shared MongoDB from main backend - MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo + MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb ports: - - "5001:5000" # Different host port to avoid conflict with main backend + - "4999:4999" expose: - - 5000 + - 4999 networks: - - DwinzoMajor - restart: unless-stopped + - DwinzoDemoNetwork socket-server: build: context: ./ - dockerfile: src/socket-server/Dockerfile + dockerfile: src/socket-server/Dockerfile container_name: DwinzoSocket_V0_end environment: NODE_ENV: development - # Connect to the shared MongoDB from main backend - MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo + MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb ports: - - "8001:8000" # Different host port to avoid conflict with main backend + - "7999:7999" expose: - - 8000 + - 7999 networks: - - DwinzoMajor - restart: unless-stopped + - DwinzoDemoNetwork -# No MongoDB service here - using the shared one from main backend networks: - DwinzoMajor: - external: true # Use the existing network from main backend \ No newline at end of file + DwinzoDemoNetwork: + driver: bridge \ No newline at end of file