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

40 lines
1.1 KiB
YAML
Raw Normal View History

2025-06-11 10:49:34 +00:00
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:49:34 +00:00
# Connect to the shared MongoDB from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 10:49:34 +00:00
- "5001:5000" # Different host port to avoid conflict with main backend
2025-06-11 10:14:56 +00:00
expose:
- 5000
2025-06-11 06:26:43 +00:00
networks:
2025-06-11 10:49:34 +00:00
- DwinzoMajor
restart: unless-stopped
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:49:34 +00:00
# Connect to the shared MongoDB from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 10:49:34 +00:00
- "8001:8000" # Different host 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:49:34 +00:00
- DwinzoMajor
restart: unless-stopped
2025-06-11 10:14:56 +00:00
2025-06-11 10:49:34 +00:00
# No MongoDB service here - using the shared one from main backend
2025-06-11 10:14:56 +00:00
networks:
2025-06-11 10:49:34 +00:00
DwinzoMajor:
external: true # Use the existing network from main backend