Update compose.yaml

This commit is contained in:
2025-06-11 10:49:34 +00:00
parent 550c576b9c
commit 7f7a88ae4b

View File

@@ -1,3 +1,4 @@
services:
api-server:
build:
@@ -6,16 +7,15 @@ services:
container_name: DwinzoApi_V0_end
environment:
NODE_ENV: development
# Connect to MongoDB on host port 27021 (where main backend MongoDB is exposed)
MONGODB_URI: mongodb://host.docker.internal:27021/dwinzo_demo_db
# Connect to the shared MongoDB from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo
ports:
- "5001:5000" # Different port to avoid conflict with main backend
- "5001:5000" # Different host port to avoid conflict with main backend
expose:
- 5000
networks:
- DwinzoDemo
extra_hosts:
- "host.docker.internal:host-gateway"
- DwinzoMajor
restart: unless-stopped
socket-server:
build:
@@ -24,20 +24,17 @@ services:
container_name: DwinzoSocket_V0_end
environment:
NODE_ENV: development
# Connect to MongoDB on host port 27021 (where main backend MongoDB is exposed)
MONGODB_URI: mongodb://host.docker.internal:27021/dwinzo_demo_db
# Connect to the shared MongoDB from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo
ports:
- "8002:8000" # Different port to avoid conflict with main backend
- "8001:8000" # Different host port to avoid conflict with main backend
expose:
- 8000
networks:
- DwinzoDemo
extra_hosts:
- "host.docker.internal:host-gateway"
- DwinzoMajor
restart: unless-stopped
# No MongoDB service - we'll connect to the main backend's MongoDB via host networking
# Create our own network for demo backend
# No MongoDB service here - using the shared one from main backend
networks:
DwinzoDemo:
driver: bridge
DwinzoMajor:
external: true # Use the existing network from main backend