fix:优化服务

This commit is contained in:
Daniel
2026-04-07 01:00:56 +08:00
parent 8d0b729f2f
commit e606b3dcd6
19 changed files with 899 additions and 7 deletions

View 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"