Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,17 @@ IDENTITY_PROVIDER_DECRYPTION_JWKS='[{"kty":"RSA","kid":"{key_id}","use":"enc","a
# Frontend: LLM settings, used by the Admin App
################################################################

# LLM (two OPENAI api keys because the testing lib promptfoo automatically uses OPENAI_API_KEY - though tests are excluded in tsconfig)
LLM_OPENAI_API_KEY=""
OPENAI_API_KEY=""
GEMINI_API_KEY=""
GOOGLE_GENERATIVE_AI_API_KEY="" # if you want to embed stuff. for the same reason as openai api key duplication: it is read directly.
COHERE_API_KEY=""
# Redis Configuration (for chatbot conversation state)
REDIS_URL=redis://redis:6379
# Set to true in production to enable TLS encryption
REDIS_TLS_ENABLED=true


################################################################
# Debugging
Expand Down
22 changes: 22 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ services:
depends_on:
strapi:
condition: service_healthy
redis:
condition: service_healthy
environment:
CHROMA_URL: http://host.docker.internal:8000
PUBLIC_BROWSER_BACKEND_URL: ${PUBLIC_BROWSER_BACKEND_URL}
PUBLIC_SERVER_BACKEND_URL: ${PUBLIC_SERVER_BACKEND_URL}
PUBLIC_BROWSER_FRONTEND_URL: ${PUBLIC_BROWSER_FRONTEND_URL}
Expand All @@ -22,11 +25,14 @@ services:
BACKEND_API_TOKEN: ${BACKEND_API_TOKEN}
PUBLIC_DEBUG: ${PUBLIC_DEBUG}
PUBLIC_CACHE_ENABLED: ${PUBLIC_CACHE_ENABLED}
REDIS_URL: redis://redis:6379
CACHE_DIR: ${CACHE_DIR}
CACHE_TTL: ${CACHE_TTL}
CACHE_LRU_SIZE: ${CACHE_LRU_SIZE}
CACHE_EXPIRATION_INTERVAL: ${CACHE_EXPIRATION_INTERVAL}
LLM_OPENAI_API_KEY: ${LLM_OPENAI_API_KEY}
COHERE_API_KEY: ${COHERE_API_KEY}
GEMINI_API_KEY: ${GEMINI_API_KEY}
awslocal:
extends:
file: ./backend/vaa-strapi/docker-compose.dev.yml
Expand Down Expand Up @@ -90,9 +96,25 @@ services:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}

redis:
image: redis:7-alpine
volumes:
- redis-data:/data
ports:
- "6379:6379"
restart: always
command: redis-server --appendonly yes --maxmemory 100mb --maxmemory-policy allkeys-lru
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s

volumes:
postgres:
strapi-uploads:
awslocal:
cache:
driver: local
redis-data:
4 changes: 4 additions & 0 deletions docs/src/lib/navigation.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ export const navigation: Navigation = [
{
title: 'Styling',
route: '/developers-guide/frontend/styling'
},
{
title: 'Chatbot',
route: '/developers-guide/frontend/chatbot'
}
]
},
Expand Down
Loading
Loading