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

42 lines
1.2 KiB
YAML
Raw Normal View History

2025-06-11 06:26:43 +00:00
services:
api-server:
build: # Assuming Dockerfile for API is in the root directory
2025-06-11 07:12:34 +00:00
context: ./ # Root directory 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 06:58:36 +00:00
MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb
2025-06-11 06:26:43 +00:00
ports:
2025-06-11 07:12:34 +00:00
- "4999:4999" # Host port mapped to container's port
2025-06-11 06:26:43 +00:00
expose:
- 4999
2025-06-11 07:12:34 +00:00
# Removed depends_on: - mongo (MongoDB is managed by backend)
2025-06-11 06:26:43 +00:00
networks:
- DwinzoMajor
socket-server:
build: # Assuming Dockerfile for Socket server is in the root directory
context: ./ # Root directory context
dockerfile: src/socket-server/Dockerfile
container_name: DwinzoSocket_V0_end
environment:
NODE_ENV: development
ports:
- "7999:7999" # Changed host port to avoid conflict with API server
expose:
- 7999
2025-06-11 07:12:34 +00:00
# Removed depends_on: - mongo
2025-06-11 06:26:43 +00:00
networks:
- DwinzoMajor # Socket server on the same network as the API server
2025-06-11 07:12:34 +00:00
# No `mongo` service defined here — we're using backend's MongoDB
2025-06-11 06:26:43 +00:00
volumes:
mongo-data: # Persistent volume for MongoDB data
2025-06-11 07:12:34 +00:00
2025-06-11 06:26:43 +00:00
networks:
DwinzoMajor:
2025-06-11 07:12:34 +00:00
external: true # Uses the same network as backend