47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
|
|
services:
|
|
api-server:
|
|
build:
|
|
context: ./
|
|
dockerfile: src/api-server/Dockerfile
|
|
container_name: DwinzoApi_V0_end
|
|
environment:
|
|
NODE_ENV: development
|
|
# Connect to shared MongoDB container from main backend
|
|
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo_db
|
|
ports:
|
|
- "5001:5000" # Different port to avoid conflict with main backend
|
|
expose:
|
|
- 5000
|
|
networks:
|
|
- DwinzoMajor
|
|
# Remove depends_on mongo since we're using external container
|
|
external_links:
|
|
- mongo-Dwinzocontainer
|
|
|
|
socket-server:
|
|
build:
|
|
context: ./
|
|
dockerfile: src/socket-server/Dockerfile
|
|
container_name: DwinzoSocket_V0_end
|
|
environment:
|
|
NODE_ENV: development
|
|
# Connect to shared MongoDB container from main backend
|
|
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo_db
|
|
ports:
|
|
- "8001:8000" # Different port to avoid conflict with main backend
|
|
expose:
|
|
- 8000
|
|
networks:
|
|
- DwinzoMajor
|
|
# Remove depends_on mongo since we're using external container
|
|
external_links:
|
|
- mongo-Dwinzocontainer
|
|
|
|
# Remove mongo service completely - we'll use the one from main backend
|
|
|
|
# Use external network created by main backend
|
|
networks:
|
|
DwinzoMajor:
|
|
external: true
|
|
name: dwinzobackend_DwinzoMajor # This should match the network name created by main backend |