Self Hosting
Environment Variables
Learn how to configure environment variables for camelAI.
Overview
camelAI uses environment variables to configure various aspects of the application. These variables are typically set in a .env.docker
file in the project root. A template file is provided in the repository.
Required Variables
Django Settings
Database Configuration
Email Configuration
AI Provider Settings
At least one LLM provider is needed for camelAI to function. You can configure one or more of the following providers:
OpenAI
Anthropic
AWS Bedrock
Azure OpenAI
For detailed instructions on setting up Azure OpenAI, see our Azure OpenAI Setup Guide.
Example Configuration
Here’s a complete example of a .env.docker
file:
Security Best Practices
- Never commit the
.env.docker
file to version control - Use strong, unique passwords for all credentials
- Keep your secret keys secure and rotate them regularly
- Use HTTPS in production
Updating Variables
After updating environment variables:
-
Stop the services:
-
Rebuild and restart:
Next Steps
After configuring your environment variables: