#!/bin/bash
# Video Flow - Docker 环境启动脚本

set -e

echo "🐳 启动 Video Flow Docker 环境..."

cd "$(dirname "$0")/.."

# 构建镜像
echo "📦 构建 Docker 镜像..."
docker-compose build

# 启动服务
echo "🚀 启动服务..."
docker-compose up -d

echo ""
echo "✅ 所有服务已启动！"
echo ""
echo "📌 访问地址："
echo "   - 视频编辑器: http://localhost:3000"
echo "   - API 文档:   http://localhost:8000/api/docs"
STREAMLIT_PORT="${STREAMLIT_PORT:-8502}"
echo "   - 工作流控制台: http://localhost:${STREAMLIT_PORT}"
echo ""
echo "📊 查看日志: docker-compose logs -f"
echo "🔧 扩展 Worker: docker-compose scale worker=3"
echo "🛑 停止服务: docker-compose down"

