Update compose.yaml

This commit is contained in:
2025-06-11 09:59:17 +00:00
parent 7f91eb22b9
commit 6d04d8a5c1

View File

@@ -1,3 +1,7 @@
networks:
DwinzoMajor:
external: true # Use the existing network from main backend
services: services:
api-server: api-server:
build: build:
@@ -6,13 +10,11 @@ services:
container_name: DwinzoApi_V0_end container_name: DwinzoApi_V0_end
environment: environment:
NODE_ENV: development NODE_ENV: development
MONGO_URI: mongodb://mongo-Dwinzocontainer:27017 MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb"
ports: ports:
- "4999:4999" - "5001:5000" # Changed port to avoid conflict with main backend
expose:
- "4999"
depends_on: depends_on:
- net-ready - mongo-Dwinzocontainer # Wait for MongoDB to be available
networks: networks:
- DwinzoMajor - DwinzoMajor
@@ -23,22 +25,10 @@ services:
container_name: DwinzoSocket_V0_end container_name: DwinzoSocket_V0_end
environment: environment:
NODE_ENV: development NODE_ENV: development
MONGO_URI: mongodb://mongo-Dwinzocontainer:27017 MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb"
ports: ports:
- "7999:7999" - "8001:8000" # Changed port to avoid conflict
expose:
- "7999"
depends_on: depends_on:
- net-ready - mongo-Dwinzocontainer
networks: networks:
- DwinzoMajor - DwinzoMajor
net-ready:
image: busybox
command: ["sh", "-c", "echo 'Network check complete'; sleep 1"]
networks:
- DwinzoMajor
networks:
DwinzoMajor:
driver: bridge