修复config.yaml的初始化逻辑
This commit is contained in:
@@ -11,8 +11,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
# Mount config file (required)
|
# Mount config file (required, read-write to allow saving from Web UI)
|
||||||
- ./config.yaml:/app/config.yaml:ro
|
# IMPORTANT: Create config.yaml before first run: cp config.example.yaml config.yaml
|
||||||
|
- ./config.yaml:/app/config.yaml
|
||||||
# Mount data directories for persistence
|
# Mount data directories for persistence
|
||||||
# data/ contains: users/, bgm/, templates/, workflows/ (custom resources)
|
# data/ contains: users/, bgm/, templates/, workflows/ (custom resources)
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
@@ -46,8 +47,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8501:8501"
|
- "8501:8501"
|
||||||
volumes:
|
volumes:
|
||||||
# Mount config file (required)
|
# Mount config file (required, read-write to allow saving from Web UI)
|
||||||
- ./config.yaml:/app/config.yaml:ro
|
# IMPORTANT: Create config.yaml before first run: cp config.example.yaml config.yaml
|
||||||
|
- ./config.yaml:/app/config.yaml
|
||||||
# Mount data directories for persistence
|
# Mount data directories for persistence
|
||||||
# data/ contains: users/, bgm/, templates/, workflows/ (custom resources)
|
# data/ contains: users/, bgm/, templates/, workflows/ (custom resources)
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
|
|||||||
@@ -7,15 +7,31 @@ echo "🐳 Pixelle-Video Docker Deployment"
|
|||||||
echo "=================================="
|
echo "=================================="
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Check if config.yaml exists
|
# Check if config.yaml exists as a directory (Docker mount issue)
|
||||||
|
if [ -d config.yaml ]; then
|
||||||
|
echo "⚠️ config.yaml is a directory (Docker mount issue), removing it..."
|
||||||
|
rm -rf config.yaml
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if config.yaml exists, if not, create from example
|
||||||
if [ ! -f config.yaml ]; then
|
if [ ! -f config.yaml ]; then
|
||||||
echo "❌ Error: config.yaml not found!"
|
echo "⚠️ config.yaml not found, creating from config.example.yaml..."
|
||||||
echo ""
|
if [ -f config.example.yaml ]; then
|
||||||
echo "Please create config.yaml before starting:"
|
cp config.example.yaml config.yaml
|
||||||
echo " 1. Copy from config.example.yaml"
|
echo "✅ config.yaml created successfully!"
|
||||||
echo " 2. Fill in your API keys and ComfyUI URL"
|
echo ""
|
||||||
echo ""
|
echo "⚠️ IMPORTANT: Please edit config.yaml and fill in:"
|
||||||
exit 1
|
echo " - LLM API key and settings"
|
||||||
|
echo " - ComfyUI URL (use host.docker.internal:8188 for local Mac/Windows)"
|
||||||
|
echo " - RunningHub API key (optional, for cloud workflows)"
|
||||||
|
echo ""
|
||||||
|
echo "You can also configure these settings in the Web UI after starting."
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo "❌ Error: config.example.yaml not found!"
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if docker-compose is available
|
# Check if docker-compose is available
|
||||||
|
|||||||
Reference in New Issue
Block a user