-eAPI_URL="http://<your-host-ip>:3333"\# or replace with a domain name
-eAPP_URL="http://<your-host-ip>:8080"\# or replace with a domain name
-eJWT_SECRET="<jwt_secret>"\# You can generate a random string using `openssl rand -base64 32`
-eLICENSE_KEY="<your_license_key>"\
-p"8080:8080"\# Frontend
-p"3333:3333"\# API port
lunary/lunary-ee:<release_version># versions are available here: https://github.com/lunary-ai/lunary/releases
4
Configure optional environment variables
The following environment variables are optional and can be used to enable the playground, evaluation and radar features:
OPENAI_API_KEY=sk-...
# Or if using Azure OpenAI:
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_RESOURCE_NAME=...
AZURE_OPENAI_DEPLOYMENT_ID=...
ANTHROPIC_API_KEY=sk-...
OPENROUTER_API_KEY=sk-...
PALM_API_KEY=AI...
5
🎉 Done!
You're all set! Open http://your-host-ip-or-url:8080 to access the app.
Make sure to export the environment variable LUNARY_API_URL=http://your-host-ip-or-url:3333 when using the SDK to send the queries to your server.
Error: Client network socket disconnected before secure TLS connection was established
This means the database's SSL certificate is not properly set. Either fix the SSL certificate or disable SSL by removing ?sslmode=require from the DATABASE_URL environment variable (not recommended if the database is exposed to the internet).