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