28 lines
747 B
YAML
28 lines
747 B
YAML
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: 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
|