docker: configure config.toml using environment variable

Signed-off-by: Navratan Lal Gupta <navilg0409@gmail.com>
This commit is contained in:
Navratan Lal Gupta
2025-04-14 00:13:01 +05:30
parent 1862491496
commit 64136b8410
4 changed files with 74 additions and 9 deletions

View File

@ -16,6 +16,19 @@ services:
dockerfile: app.dockerfile
environment:
- SEARXNG_API_URL=http://searxng:8080
- GENERAL_SIMILARITY_MEASURE="cosine" # "cosine" or "dot"
- GENERAL_KEEP_ALIVE="5m" # How long to keep Ollama models loaded into memory. (Instead of using -1 use "-1m")
- MODELS_OPENAI_API_KEY=""
- MODELS_GROQ_API_KEY=""
- MODELS_ANTHROPIC_API_KEY=""
- MODELS_GEMINI_API_KEY=""
- MODELS_CUSTOM_OPENAI_API_KEY=""
- MODELS_CUSTOM_OPENAI_API_URL=""
- MODELS_CUSTOM_OPENAI_MODEL_NAME=""
- MODELS_OLLAMA_API_KEY="" # Ollama API URL - http://host.docker.internal:11434
- MODELS_DEEPSEEK_API_KEY=""
- MODELS_LM_STUDIO_API_KEY="" # LM Studio API URL - http://host.docker.internal:1234
- API_ENDPOINTS_SEARXNG="" # SearxNG API URL - http://localhost:32768
ports:
- 3000:3000
networks:
@ -23,7 +36,6 @@ services:
volumes:
- backend-dbstore:/home/perplexica/data
- uploads:/home/perplexica/uploads
- ./config.toml:/home/perplexica/config.toml
restart: unless-stopped
networks: