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

47 lines
1.4 KiB
YAML
Raw Normal View History

2025-06-11 09:59:17 +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:14:56 +00:00
# Connect to shared MongoDB container from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/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 08:00:19 +00:00
- DwinzoMajor
2025-06-11 10:14:56 +00:00
# Remove depends_on mongo since we're using external container
external_links:
- mongo-Dwinzocontainer
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:14:56 +00:00
# Connect to shared MongoDB container from main backend
MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo_db
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 10:14:56 +00:00
- "8001:8000" # Different port to avoid conflict with main backend
expose:
- 8000
2025-06-11 06:26:43 +00:00
networks:
2025-06-11 10:14:56 +00:00
- 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