Files
Dwinzo-Backend-V0.0/compose.yaml

43 lines
1.2 KiB
YAML
Raw Normal View History

2025-06-11 06:26:43 +00:00
services:
api-server:
2025-06-11 07:30:26 +00:00
build:
2025-06-11 08:00:19 +00:00
context: ./
dockerfile: src/api-server/Dockerfile
2025-06-11 06:26:43 +00:00
container_name: DwinzoApi_V0_end
environment:
NODE_ENV: development
2025-06-11 10:22:20 +00:00
# Connect to MongoDB on host port 27021 (where main backend MongoDB is exposed)
MONGODB_URI: mongodb://host.docker.internal:27021/dwinzo_demo_db
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 10:14:56 +00:00
- "5001:5000" # Different port to avoid conflict with main backend
expose:
- 5000
2025-06-11 06:26:43 +00:00
networks:
2025-06-11 10:22:20 +00:00
- DwinzoDemo
extra_hosts:
- "host.docker.internal:host-gateway"
2025-06-11 06:26:43 +00:00
socket-server:
2025-06-11 07:30:26 +00:00
build:
2025-06-11 08:00:19 +00:00
context: ./
dockerfile: src/socket-server/Dockerfile
2025-06-11 06:26:43 +00:00
container_name: DwinzoSocket_V0_end
environment:
NODE_ENV: development
2025-06-11 10:22:20 +00:00
# Connect to MongoDB on host port 27021 (where main backend MongoDB is exposed)
MONGODB_URI: mongodb://host.docker.internal:27021/dwinzo_demo_db
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 10:41:20 +00:00
- "8002:8000" # Different port to avoid conflict with main backend
2025-06-11 10:14:56 +00:00
expose:
- 8000
2025-06-11 06:26:43 +00:00
networks:
2025-06-11 10:22:20 +00:00
- DwinzoDemo
extra_hosts:
- "host.docker.internal:host-gateway"
2025-06-11 10:14:56 +00:00
2025-06-11 10:22:20 +00:00
# No MongoDB service - we'll connect to the main backend's MongoDB via host networking
2025-06-11 10:14:56 +00:00
2025-06-11 10:22:20 +00:00
# Create our own network for demo backend
2025-06-11 10:14:56 +00:00
networks:
2025-06-11 10:22:20 +00:00
DwinzoDemo:
driver: bridge