config(core-api): reorganize environment and add service integrations
- 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 <noreply@anthropic.com>
This commit is contained in:
+28
-7
@@ -19,7 +19,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
# Application
|
# Application
|
||||||
- APP_NAME=Core API
|
- APP_NAME=Core API
|
||||||
- DEBUG=true
|
- DEBUG=false
|
||||||
|
|
||||||
# Server
|
# Server
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
@@ -28,10 +28,6 @@ services:
|
|||||||
# Logging
|
# Logging
|
||||||
- LOG_LEVEL=INFO
|
- LOG_LEVEL=INFO
|
||||||
|
|
||||||
# Ollama Configuration (AI Orchestration)
|
|
||||||
- OLLAMA_BASE_URL=http://ollama:11434
|
|
||||||
- OLLAMA_TIMEOUT=300
|
|
||||||
|
|
||||||
# Model Configuration
|
# Model Configuration
|
||||||
- DEFAULT_MODEL=gemma:7b
|
- DEFAULT_MODEL=gemma:7b
|
||||||
- LIGHTWEIGHT_MODELS=gemma:2b,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.
|
# Set to "false" to make agent errors explicit (500 errors) instead of silent fallback.
|
||||||
- AGENT_FALLBACK_ENABLED=false
|
- 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
|
# HOME ASSITANT VARIABLES
|
||||||
- HOMEASSISTANT_URL=http://192.168.86.149:8123
|
- HOMEASSISTANT_URL=http://home-assistant:8123
|
||||||
- HOMEASSISTANT_TOKEN=${HOMEASSISTANT_TOKEN}
|
- 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
|
# Python path
|
||||||
- PYTHONPATH=/app
|
- PYTHONPATH=/app
|
||||||
|
|
||||||
@@ -77,7 +98,7 @@ services:
|
|||||||
- "com.centurylinklabs.watchtower.enable=true"
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8083/health/full"]
|
test: ["CMD", "curl", "-f", "http://localhost:8083/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user