This commit is contained in:
SathishKannaa-HexrFactory
2025-01-22 16:59:14 +05:30
commit a28398259c
42 changed files with 2313 additions and 0 deletions

50
compose.yaml Normal file
View File

@@ -0,0 +1,50 @@
services:
api-server:
build: # Assuming Dockerfile for API is in the root directory
context: ./ # Root directory context
dockerfile: src/api-server/Dockerfile
container_name: DwinzoApi_end
environment:
NODE_ENV: development
ports:
- "50013:3503" # Host port 50013 mapped to container's port 3503
expose:
- 3503
depends_on:
- mongo
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_end
environment:
NODE_ENV: development
ports:
- "50014:1059" # Changed host port to avoid conflict with API server
expose:
- 1059
depends_on:
- mongo
networks:
- DwinzoMajor # Socket server on the same network as the API server
mongo:
image: mongo:latest
container_name: mongo-Dwinzocontainer
ports:
- "3502:27017"
volumes:
- mongo-data:/data/db
networks:
- DwinzoMajor # Mongo is now on the same network
volumes:
mongo-data: # Persistent volume for MongoDB data
networks:
DwinzoMajor:
driver: bridge