From 6d04d8a5c170bd82f66e64cb1162b79a8b5f6fcc Mon Sep 17 00:00:00 2001 From: RamkumarP Date: Wed, 11 Jun 2025 09:59:17 +0000 Subject: [PATCH] Update compose.yaml --- compose.yaml | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/compose.yaml b/compose.yaml index 8f7749a..980c52b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,3 +1,7 @@ +networks: + DwinzoMajor: + external: true # Use the existing network from main backend + services: api-server: build: @@ -6,13 +10,11 @@ services: container_name: DwinzoApi_V0_end environment: NODE_ENV: development - MONGO_URI: mongodb://mongo-Dwinzocontainer:27017 + MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb" ports: - - "4999:4999" - expose: - - "4999" + - "5001:5000" # Changed port to avoid conflict with main backend depends_on: - - net-ready + - mongo-Dwinzocontainer # Wait for MongoDB to be available networks: - DwinzoMajor @@ -23,22 +25,10 @@ services: container_name: DwinzoSocket_V0_end environment: NODE_ENV: development - MONGO_URI: mongodb://mongo-Dwinzocontainer:27017 + MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb" ports: - - "7999:7999" - expose: - - "7999" + - "8001:8000" # Changed port to avoid conflict depends_on: - - net-ready + - mongo-Dwinzocontainer networks: - - DwinzoMajor - - net-ready: - image: busybox - command: ["sh", "-c", "echo 'Network check complete'; sleep 1"] - networks: - - DwinzoMajor - -networks: - DwinzoMajor: - driver: bridge + - DwinzoMajor \ No newline at end of file