fix: add Gradio environment variables and remove conflicting command

This commit is contained in:
2025-11-13 05:52:13 +01:00
parent 65865b7bb8
commit 3c56f05286
2 changed files with 4 additions and 2 deletions

View File

@@ -160,10 +160,12 @@ services:
facefusion: facefusion:
image: ${AI_FACEFUSION_IMAGE:-facefusion/facefusion:3.5.0-cpu} image: ${AI_FACEFUSION_IMAGE:-facefusion/facefusion:3.5.0-cpu}
container_name: ${AI_COMPOSE_PROJECT_NAME}_facefusion container_name: ${AI_COMPOSE_PROJECT_NAME}_facefusion
restart: unless-stopped
entrypoint: ["/entrypoint.sh"] entrypoint: ["/entrypoint.sh"]
command: ['python', '-u', 'facefusion.py', 'run']
environment: environment:
TZ: ${TIMEZONE:-Europe/Berlin} TZ: ${TIMEZONE:-Europe/Berlin}
GRADIO_SERVER_NAME: "0.0.0.0"
GRADIO_SERVER_PORT: "7860"
volumes: volumes:
- ai_facefusion_data:/workspace - ai_facefusion_data:/workspace
- ./entrypoint.sh:/entrypoint.sh:ro - ./entrypoint.sh:/entrypoint.sh:ro

View File

@@ -13,4 +13,4 @@ else
fi fi
echo "Starting Facefusion..." echo "Starting Facefusion..."
cd /facefusion && exec python -u facefusion.py run --listen 0.0.0.0 --port 7860 cd /facefusion && exec python -u facefusion.py run