Files
Dwinzo-Backend-V0.0/compose.yaml
2025-06-11 10:41:20 +00:00

43 lines
1.2 KiB
YAML

services:
api-server:
build:
context: ./
dockerfile: src/api-server/Dockerfile
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
ports:
- "5001:5000" # Different port to avoid conflict with main backend
expose:
- 5000
networks:
- DwinzoDemo
extra_hosts:
- "host.docker.internal:host-gateway"
socket-server:
build:
context: ./
dockerfile: src/socket-server/Dockerfile
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
ports:
- "8002:8000" # Different port to avoid conflict with main backend
expose:
- 8000
networks:
- DwinzoDemo
extra_hosts:
- "host.docker.internal:host-gateway"
# No MongoDB service - we'll connect to the main backend's MongoDB via host networking
# Create our own network for demo backend
networks:
DwinzoDemo:
driver: bridge