Update compose.yaml

This commit is contained in:
2025-06-11 11:11:05 +00:00
parent 7f7a88ae4b
commit ee1c9b3ab0

View File

@@ -1,4 +1,3 @@
services: services:
api-server: api-server:
build: build:
@@ -7,15 +6,13 @@ services:
container_name: DwinzoApi_V0_end container_name: DwinzoApi_V0_end
environment: environment:
NODE_ENV: development NODE_ENV: development
# Connect to the shared MongoDB from main backend MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo
ports: ports:
- "5001:5000" # Different host port to avoid conflict with main backend - "4999:4999"
expose: expose:
- 5000 - 4999
networks: networks:
- DwinzoMajor - DwinzoDemoNetwork
restart: unless-stopped
socket-server: socket-server:
build: build:
@@ -24,17 +21,14 @@ services:
container_name: DwinzoSocket_V0_end container_name: DwinzoSocket_V0_end
environment: environment:
NODE_ENV: development NODE_ENV: development
# Connect to the shared MongoDB from main backend MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo
ports: ports:
- "8001:8000" # Different host port to avoid conflict with main backend - "7999:7999"
expose: expose:
- 8000 - 7999
networks: networks:
- DwinzoMajor - DwinzoDemoNetwork
restart: unless-stopped
# No MongoDB service here - using the shared one from main backend
networks: networks:
DwinzoMajor: DwinzoDemoNetwork:
external: true # Use the existing network from main backend driver: bridge