From 3c56f05286be3a31e253cea6a7a7157def35d21f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 13 Nov 2025 05:52:13 +0100 Subject: [PATCH] fix: add Gradio environment variables and remove conflicting command --- ai/compose.yaml | 4 +++- ai/entrypoint.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ai/compose.yaml b/ai/compose.yaml index 0a19c4e..0dcd7f1 100644 --- a/ai/compose.yaml +++ b/ai/compose.yaml @@ -160,10 +160,12 @@ services: facefusion: image: ${AI_FACEFUSION_IMAGE:-facefusion/facefusion:3.5.0-cpu} container_name: ${AI_COMPOSE_PROJECT_NAME}_facefusion + restart: unless-stopped entrypoint: ["/entrypoint.sh"] - command: ['python', '-u', 'facefusion.py', 'run'] environment: TZ: ${TIMEZONE:-Europe/Berlin} + GRADIO_SERVER_NAME: "0.0.0.0" + GRADIO_SERVER_PORT: "7860" volumes: - ai_facefusion_data:/workspace - ./entrypoint.sh:/entrypoint.sh:ro diff --git a/ai/entrypoint.sh b/ai/entrypoint.sh index 814b938..a2cd939 100755 --- a/ai/entrypoint.sh +++ b/ai/entrypoint.sh @@ -13,4 +13,4 @@ else fi 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