Environment variables
Set an application's environment, and how it reaches compose stacks.
On this page
On the application’s page, open the Environment tab. Write one KEY=value per line, then click Save.
Redeploy for the change to take effect.
For a pasted compose stack, the same tab also holds the compose file.
- In the database, encrypted with the server’s master key.
- In
apps/<id>/.envon the server, which containers read.
Only admins can see this tab. API tokens can’t read variables either.
The .env file is passed to Docker Compose with --env-file. Reference variables in the compose file with ${NAME}:
services:
app:
image: postgres:17
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}DB_PASSWORD=a-long-secretThis is how one value reaches every service of a stack.