33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
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:-false}
|
|
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.center
|
|
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
|