Update compose.yaml
This commit is contained in:
30
compose.yaml
30
compose.yaml
@@ -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
|
||||
Reference in New Issue
Block a user