diff --git a/compose.yaml b/compose.yaml index fd26722..4c6d367 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,40 +1,34 @@ - services: api-server: build: context: ./ - dockerfile: src/api-server/Dockerfile + dockerfile: src/api-server/Dockerfile container_name: DwinzoApi_V0_end environment: NODE_ENV: development - # Connect to the shared MongoDB from main backend - MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo + MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb ports: - - "5001:5000" # Different host port to avoid conflict with main backend + - "4999:4999" expose: - - 5000 + - 4999 networks: - - DwinzoMajor - restart: unless-stopped + - DwinzoDemoNetwork socket-server: build: context: ./ - dockerfile: src/socket-server/Dockerfile + dockerfile: src/socket-server/Dockerfile container_name: DwinzoSocket_V0_end environment: NODE_ENV: development - # Connect to the shared MongoDB from main backend - MONGODB_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzo_demo + MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb ports: - - "8001:8000" # Different host port to avoid conflict with main backend + - "7999:7999" expose: - - 8000 + - 7999 networks: - - DwinzoMajor - restart: unless-stopped + - DwinzoDemoNetwork -# No MongoDB service here - using the shared one from main backend networks: - DwinzoMajor: - external: true # Use the existing network from main backend \ No newline at end of file + DwinzoDemoNetwork: + driver: bridge \ No newline at end of file