fix: 修复部署问题

This commit is contained in:
Daniel
2026-04-07 17:01:13 +08:00
parent d22d6bb73b
commit 4879d2e8c5
15 changed files with 280 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
services:
edge-dispatch:
build:
context: ..
dockerfile: docker/edge-dispatch/Dockerfile
args:
PYTHON_IMAGE: ${PYTHON_IMAGE:-docker.m.daocloud.io/library/python:3.10-slim}
APT_MIRROR: ${APT_MIRROR:-mirrors.aliyun.com}
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://mirrors.aliyun.com/pypi/simple/}
PIP_TRUSTED_HOST: ${PIP_TRUSTED_HOST:-mirrors.aliyun.com}
AUTO_PULL_LATEST: ${AUTO_PULL_LATEST:-true}
GIT_REPO_URL: ${GIT_REPO_URL:-}
GIT_BRANCH: ${GIT_BRANCH:-master}
GIT_CLONE_DEPTH: ${GIT_CLONE_DEPTH:-1}
GIT_PROJECT_SUBDIR: ${GIT_PROJECT_SUBDIR:-video_worker}
container_name: video-worker-center-dispatch
env_file:
- .env
command: ["python", "-m", "uvicorn", "app.edge_dispatch_service:app", "--host", "0.0.0.0", "--port", "${EDGE_DISPATCH_PORT:-8060}"]
ports:
- "${EDGE_DISPATCH_PORT:-8060}:${EDGE_DISPATCH_PORT:-8060}"
restart: unless-stopped