version: '3.8' services: mongodb: image: mongo:latest container_name: gigshield-db ports: - "27017:27017" volumes: - mongodb_data:/data/db backend: build: context: ./backend dockerfile: Dockerfile container_name: gigshield-backend ports: - "3001:3001" environment: - NODE_ENV=development - PORT=3001 - MONGODB_URI=mongodb://mongodb:27017/gigshield - ML_SERVICE_URL=http://ml-service:8000 depends_on: - mongodb - ml-service frontend: build: context: ./frontend dockerfile: Dockerfile container_name: gigshield-frontend ports: - "5173:5173" environment: - VITE_API_URL=http://localhost:3001/api - VITE_SOCKET_URL=http://localhost:3001 depends_on: - backend ml-service: build: context: ./ml-service dockerfile: Dockerfile container_name: gigshield-ml ports: - "8000:8000" environment: - PYTHONUNBUFFERED=1 volumes: mongodb_data: