services: edge-dispatch: build: context: . dockerfile: docker/edge-dispatch/Dockerfile args: PYTHON_IMAGE: registry.cn-hangzhou.aliyuncs.com/library/python:3.10-slim APT_MIRROR: mirrors.aliyun.com PIP_INDEX_URL: https://mirrors.aliyun.com/pypi/simple/ PIP_TRUSTED_HOST: mirrors.aliyun.com container_name: edge-dispatch-service env_file: - .env environment: EDGE_DISPATCH_HOST: 0.0.0.0 EDGE_DISPATCH_PORT: ${EDGE_DISPATCH_PORT:-8020} command: ["python", "-m", "uvicorn", "app.edge_dispatch_service:app", "--host", "0.0.0.0", "--port", "${EDGE_DISPATCH_PORT:-8020}"] ports: - "${EDGE_DISPATCH_PORT:-8020}:${EDGE_DISPATCH_PORT:-8020}" restart: unless-stopped