This commit is contained in:
丹尼尔
2026-03-12 22:10:01 +08:00
parent ad96272ab6
commit a609f81a36
5 changed files with 85 additions and 2 deletions

13
docker_dev.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# 使用 Docker Compose 一键构建并启动 FastAPI + Next.js
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${SCRIPT_DIR}"
echo "[Ops-Core] 使用 Docker 构建并启动服务 (backend + frontend)..."
docker compose -f docker-compose.yml up --build
# 如需后台模式,可改为:
# docker compose -f docker-compose.yml up --build -d