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

34 lines
924 B
YAML
Raw Normal View History

2025-06-11 09:59:17 +00:00
networks:
DwinzoMajor:
external: true # Use the existing network from main backend
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 09:59:17 +00:00
MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb"
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 09:59:17 +00:00
- "5001:5000" # Changed port to avoid conflict with main backend
2025-06-11 08:00:19 +00:00
depends_on:
2025-06-11 09:59:17 +00:00
- mongo-Dwinzocontainer # Wait for MongoDB to be available
2025-06-11 06:26:43 +00:00
networks:
2025-06-11 08:00:19 +00:00
- DwinzoMajor
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 09:59:17 +00:00
MONGO_URL: "mongodb://mongo-Dwinzocontainer:27017/dwinzodb"
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 09:59:17 +00:00
- "8001:8000" # Changed port to avoid conflict
2025-06-11 08:00:19 +00:00
depends_on:
2025-06-11 09:59:17 +00:00
- mongo-Dwinzocontainer
2025-06-11 06:26:43 +00:00
networks:
2025-06-11 09:59:17 +00:00
- DwinzoMajor