diff --git a/compose.yaml b/compose.yaml index ceb2b32..bdb857c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -7,6 +7,8 @@ services: container_name: DwinzoApi_V0_end environment: NODE_ENV: development + MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb + ports: - "4999:4999" # Host port 5000 mapped to container's port 5000 expose: @@ -32,16 +34,6 @@ services: networks: - DwinzoMajor # Socket server on the same network as the API server - mongo: - image: mongo:latest - container_name: mongo-Dwinzocontainer-demo - ports: - - "27021:27017" - volumes: - - mongo-data:/data/db - networks: - - DwinzoMajor # Mongo is now on the same network - volumes: mongo-data: # Persistent volume for MongoDB data