diff --git a/.env.example b/.env.example index ded7737..6c435d3 100644 --- a/.env.example +++ b/.env.example @@ -2,6 +2,9 @@ # Deepseek API Key (for LLM in alfred) DEEPSEEK_API_KEY= +# - ChatGPT/Open API +OPENAI_API_KEY= + OLLAMA_BASE_URL= OLLAMA_MODEL= @@ -25,8 +28,8 @@ QBITTORRENT_PASSWORD=adminadmin DEBUG_LOGGING=false DEBUG_CONSOLE=false -# Required security keys -JWT_SECRET= -JWT_REFRESH_SECRET= -CREDS_KEY= +# Postgres (RAG) +POSTGRES_DB= +POSTGRES_USER= +POSTGRES_PASSWORD= CREDS_IV= diff --git a/docker-compose.yaml b/docker-compose.yaml index 3b3080f..e0bc461 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -79,7 +79,11 @@ services: container_name: alfred-rag image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:${RAG_VERSION} restart: unless-stopped + env_file: + - .env environment: + - DB_HOST=vectordb + - DB_PORT=5432 - RAG_PORT=${RAG_PORT:-8000} ports: - "${RAG_PORT:-8000}:${RAG_PORT:-8000}" @@ -89,10 +93,8 @@ services: container_name: alfred-vectordb image: pgvector/pgvector:0.8.0-pg16-bookworm restart: unless-stopped - environment: - - POSTGRES_DB=${VECTOR_DB_NAME:-vectordb} - - POSTGRES_USER=${VECTOR_DB_USER:-postgres} - - POSTGRES_PASSWORD=${VECTOR_DB_PASSWORD:-postgres} + env_file: + - .env ports: - "${VECTOR_DB_PORT:-5432}:5432" volumes: