version: '3.8' services: mongodb: image: mongo:5.0 environment: MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-mongouser} MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-mongopassword} volumes: - mongo_data:/data/db pyscout-api: build: . depends_on: - mongodb environment: - MONGODB_URI=mongodb://${MONGO_USER:-mongouser}:${MONGO_PASSWORD:-mongopassword}@mongodb:27017/pyscout_ai?authSource=admin - PYSCOUT_MODE=api ports: - "8000:8000" gradio-ui: build: . depends_on: - pyscout-api environment: - PYSCOUT_MODE=ui - API_BASE_URL=http://pyscout-api:8000 ports: - "7860:7860" volumes: mongo_data: