From d647a2e0054c68f35b9dfc096ddcf20756c1eec4 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Fri, 2 Jan 2026 13:58:57 +0100 Subject: [PATCH] config(core-api): reorganize environment and add service integrations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Disable debug mode for production - Add Portainer, NPM, Postgres, Authentik API configurations - Add SearXNG URL for search integration - Use container name for Home Assistant URL - Simplify healthcheck to /health endpoint - Group environment variables by service 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- stacks/core-api.yml | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/stacks/core-api.yml b/stacks/core-api.yml index 8649109..193aa1d 100644 --- a/stacks/core-api.yml +++ b/stacks/core-api.yml @@ -19,7 +19,7 @@ services: environment: # Application - APP_NAME=Core API - - DEBUG=true + - DEBUG=false # Server - HOST=0.0.0.0 @@ -28,10 +28,6 @@ services: # Logging - LOG_LEVEL=INFO - # Ollama Configuration (AI Orchestration) - - OLLAMA_BASE_URL=http://ollama:11434 - - OLLAMA_TIMEOUT=300 - # Model Configuration - DEFAULT_MODEL=gemma:7b - LIGHTWEIGHT_MODELS=gemma:2b,gemma:7b @@ -48,10 +44,35 @@ services: # Set to "false" to make agent errors explicit (500 errors) instead of silent fallback. - AGENT_FALLBACK_ENABLED=false + # Portainer API + - PORTAINER_URL=http://192.168.86.149:8001 + - PORTAINER_API_KEY=${PORTAINER_API_KEY} + + # Nginx Proxy Manager API + - NPM_URL=http://192.168.86.149:81 + - NPM_EMAIL=${NPM_EMAIL} + - NPM_PASSWORD=${NPM_PASSWORD} + + # Postgres Shared Database API + - POSTGRES_HOST=192.168.86.149:5432 + - POSTGRES_USER=core_api + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + + # Authentik Configuration + - AUTHENTIK_URL=https://auth.schweitz.net + - AUTHENTIK_USERNAME=${AUTHENTIK_USERNAME} + - AUTHENTIK_PASSWORD=${AUTHENTIK_PASSWORD} + - AUTHENTIK_CORE_API_TOKEN=${AUTHENTIK_CORE_API_TOKEN} + # HOME ASSITANT VARIABLES - - HOMEASSISTANT_URL=http://192.168.86.149:8123 + - HOMEASSISTANT_URL=http://home-assistant:8123 - HOMEASSISTANT_TOKEN=${HOMEASSISTANT_TOKEN} + # AI SYSTEM VARIABLES + - OLLAMA_BASE_URL=http://192.168.86.149:11434 + - OLLAMA_TIMEOUT=300 + - SEARXNG_URL=http://192.168.86.149:8080 + # Python path - PYTHONPATH=/app @@ -77,7 +98,7 @@ services: - "com.centurylinklabs.watchtower.enable=true" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8083/health/full"] + test: ["CMD", "curl", "-f", "http://localhost:8083/health"] interval: 30s timeout: 20s retries: 3