Update compose.yaml

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

View File

@@ -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
DwinzoDemoNetwork:
driver: bridge