Update compose.yaml
This commit is contained in:
24
compose.yaml
24
compose.yaml
@@ -1,41 +1,33 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
api-server:
|
api-server:
|
||||||
build: # Assuming Dockerfile for API is in the root directory
|
build:
|
||||||
context: ./ # Root directory context
|
context: ./
|
||||||
dockerfile: src/api-server/Dockerfile
|
dockerfile: src/api-server/Dockerfile
|
||||||
container_name: DwinzoApi_V0_end
|
container_name: DwinzoApi_V0_end
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb
|
MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb
|
||||||
ports:
|
ports:
|
||||||
- "4999:4999" # Host port mapped to container's port
|
- "4999:4999"
|
||||||
expose:
|
expose:
|
||||||
- 4999
|
- 4999
|
||||||
# Removed depends_on: - mongo (MongoDB is managed by backend)
|
|
||||||
networks:
|
networks:
|
||||||
- DwinzoMajor
|
- DwinzoMajor
|
||||||
|
|
||||||
socket-server:
|
socket-server:
|
||||||
build: # Assuming Dockerfile for Socket server is in the root directory
|
build:
|
||||||
context: ./ # Root directory context
|
context: ./
|
||||||
dockerfile: src/socket-server/Dockerfile
|
dockerfile: src/socket-server/Dockerfile
|
||||||
container_name: DwinzoSocket_V0_end
|
container_name: DwinzoSocket_V0_end
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
ports:
|
ports:
|
||||||
- "7999:7999" # Changed host port to avoid conflict with API server
|
- "7999:7999"
|
||||||
expose:
|
expose:
|
||||||
- 7999
|
- 7999
|
||||||
# Removed depends_on: - mongo
|
|
||||||
networks:
|
networks:
|
||||||
- DwinzoMajor # Socket server on the same network as the API server
|
- DwinzoMajor
|
||||||
|
|
||||||
# No `mongo` service defined here — we're using backend's MongoDB
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
mongo-data: # Persistent volume for MongoDB data
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
DwinzoMajor:
|
DwinzoMajor:
|
||||||
external: true # Uses the same network as backend
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user