From 8445256b0fae37d2c64767bb61ac88b04b418f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Wed, 12 Nov 2025 16:38:57 +0100 Subject: [PATCH] chore: facefusion --- ai/compose.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ai/compose.yaml b/ai/compose.yaml index f67190c..efa3bae 100644 --- a/ai/compose.yaml +++ b/ai/compose.yaml @@ -15,7 +15,7 @@ services: - ai_postgres_data:/var/lib/postgresql/data - ./postgres/init:/docker-entrypoint-initdb.d healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${AI_DB_USER}"] + test: ['CMD-SHELL', 'pg_isready -U ${AI_DB_USER}'] interval: 30s timeout: 10s retries: 3 @@ -98,10 +98,20 @@ services: ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY} LITELLM_MASTER_KEY: ${AI_LITELLM_API_KEY} DATABASE_URL: postgresql://${AI_DB_USER}:${AI_DB_PASSWORD}@ai_postgres:5432/litellm - LITELLM_DROP_PARAMS: "true" + LITELLM_DROP_PARAMS: 'true' volumes: - ./litellm-config.yaml:/app/litellm-config.yaml:ro - command: ["--config", "/app/litellm-config.yaml", "--host", "0.0.0.0", "--port", "4000", "--detailed_debug", "--drop_params"] + command: + [ + '--config', + '/app/litellm-config.yaml', + '--host', + '0.0.0.0', + '--port', + '4000', + '--detailed_debug', + '--drop_params' + ] depends_on: - ai_postgres networks: @@ -151,13 +161,9 @@ services: image: ${AI_FACEFUSION_IMAGE:-facefusion/facefusion:3.5.0-cpu} container_name: ${AI_COMPOSE_PROJECT_NAME}_facefusion restart: unless-stopped - command: ["python3", "-u", "facefusion.py", "run"] + command: ['python', 'facefusion.py', 'run'] environment: TZ: ${TIMEZONE:-Europe/Berlin} - # Force CPU execution on VPS (no GPU available yet) - FACEFUSION_EXECUTION_PROVIDERS: ${AI_FACEFUSION_EXECUTION_PROVIDERS:-cpu} - GRADIO_SERVER_NAME: 0.0.0.0 - GRADIO_SERVER_PORT: 7865 volumes: - ai_facefusion_data:/workspace networks: @@ -178,7 +184,7 @@ services: - 'traefik.http.middlewares.${AI_COMPOSE_PROJECT_NAME}-facefusion-web-secure-compress.compress=true' - 'traefik.http.routers.${AI_COMPOSE_PROJECT_NAME}-facefusion-web-secure.middlewares=${AI_COMPOSE_PROJECT_NAME}-facefusion-auth,${AI_COMPOSE_PROJECT_NAME}-facefusion-web-secure-compress,security-headers@file' # Service - - 'traefik.http.services.${AI_COMPOSE_PROJECT_NAME}-facefusion-web-secure.loadbalancer.server.port=7865' + - 'traefik.http.services.${AI_COMPOSE_PROJECT_NAME}-facefusion-web-secure.loadbalancer.server.port=7860' - 'traefik.docker.network=${NETWORK_NAME}' # Watchtower - 'com.centurylinklabs.watchtower.enable=${WATCHTOWER_LABEL_ENABLE}'