diff --git a/.env b/.env index 23df42c..86078c5 100644 --- a/.env +++ b/.env @@ -4,8 +4,8 @@ MONGO_USER=admin MONGO_PASSWORD=admin321 MONGO_AUTH_DB=admin -API_PORT=5000 -SOCKET_PORT=8000 +API_PORT=4999 +SOCKET_PORT=7999 NODE_ENV=development FRONTEND_ORIGIN_PROD=http://185.100.212.76:8200 diff --git a/compose.yaml b/compose.yaml index 87e6c57..2e4a822 100644 --- a/compose.yaml +++ b/compose.yaml @@ -4,13 +4,13 @@ services: build: # Assuming Dockerfile for API is in the root directory context: ./ # Root directory context dockerfile: src/api-server/Dockerfile - container_name: DwinzoApi_end + container_name: DwinzoApi_V0_end environment: NODE_ENV: development ports: - - "5000:5000" # Host port 5000 mapped to container's port 5000 + - "4999:4999" # Host port 5000 mapped to container's port 5000 expose: - - 5000 + - 4999 depends_on: - mongo networks: @@ -20,13 +20,13 @@ services: build: # Assuming Dockerfile for Socket server is in the root directory context: ./ # Root directory context dockerfile: src/socket-server/Dockerfile - container_name: DwinzoSocket_end + container_name: DwinzoSocket_V0_end environment: NODE_ENV: development ports: - - "8000:8000" # Changed host port to avoid conflict with API server + - "7999:7999" # Changed host port to avoid conflict with API server expose: - - 8000 + - 7999 depends_on: - mongo networks: @@ -34,9 +34,9 @@ services: mongo: image: mongo:latest - container_name: mongo-Dwinzocontainer + container_name: mongo_V0-Dwinzocontainer ports: - - "27021:27017" + - "27022:27017" volumes: - mongo-data:/data/db networks: