Update compose.yaml

This commit is contained in:
2025-06-11 10:14:56 +00:00
parent 061dec024e
commit d1e70423ca

View File

@@ -1,6 +1,3 @@
networks:
DwinzoMajor:
external: true # Must already exist
services: services:
api-server: api-server:
@@ -10,11 +7,17 @@ services:
container_name: DwinzoApi_V0_end container_name: DwinzoApi_V0_end
environment: environment:
NODE_ENV: development NODE_ENV: development
MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb" # Connect to shared MongoDB container from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo_db
ports: ports:
- "5001:5000" # Avoid port conflict with main backend - "5001:5000" # Different port to avoid conflict with main backend
expose:
- 5000
networks: networks:
- DwinzoMajor - DwinzoMajor
# Remove depends_on mongo since we're using external container
external_links:
- mongo-Dwinzocontainer
socket-server: socket-server:
build: build:
@@ -23,8 +26,22 @@ services:
container_name: DwinzoSocket_V0_end container_name: DwinzoSocket_V0_end
environment: environment:
NODE_ENV: development NODE_ENV: development
MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb" # Connect to shared MongoDB container from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo_db
ports: ports:
- "8001:8000" # Avoid port conflict - "8001:8000" # Different port to avoid conflict with main backend
expose:
- 8000
networks: networks:
- DwinzoMajor - DwinzoMajor
# Remove depends_on mongo since we're using external container
external_links:
- mongo-Dwinzocontainer
# Remove mongo service completely - we'll use the one from main backend
# Use external network created by main backend
networks:
DwinzoMajor:
external: true
name: dwinzobackend_DwinzoMajor # This should match the network name created by main backend