services: api-server: build: context: ./ 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 ports: - "5001:5000" # Different host port to avoid conflict with main backend expose: - 5000 networks: - DwinzoMajor restart: unless-stopped socket-server: build: context: ./ 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 ports: - "8001:8000" # Different host port to avoid conflict with main backend expose: - 8000 networks: - DwinzoMajor restart: unless-stopped # No MongoDB service here - using the shared one from main backend networks: DwinzoMajor: external: true # Use the existing network from main backend