fix:优化服务
This commit is contained in:
14
video_worker/scripts/run_edge_dispatch_docker.sh
Executable file
14
video_worker/scripts/run_edge_dispatch_docker.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
cp .env.example .env
|
||||
fi
|
||||
|
||||
docker compose -f docker-compose.edge-dispatch.yml up -d --build
|
||||
|
||||
echo "[OK] edge dispatch service started"
|
||||
echo "health: curl http://127.0.0.1:${EDGE_DISPATCH_PORT:-8020}/health"
|
||||
Reference in New Issue
Block a user