Set Secure Environment Variables
Last updated
Was this helpful?
Last updated
Was this helpful?
When your application requires environment variables, never set them directly in the Docker Compose file. Instead, use the Encrypted Secrets section to ensure your sensitive data remains secure.
Declare Environment Variables in Docker Compose
Define your environment variables in the Docker Compose file using variable substitution:
Important: Do not use double quotation marks around variables: ā
OPENAI_API_KEY="${OPENAI_API_KEY_IN_ENV}"
Set Values in Encrypted Secrets
Configure the actual values in the Encrypted Secrets section of the Cloud UI.
We recommend using Text type for environment variables if you have many variables to set.