Environment Variables
Environment variables configure your app without committing secrets.
Dashboard
Open a project, go to Settings or Environment, and add key/value pairs.
CLI
dock env ls
dock env set NODE_ENV=production API_URL=https://api.example.com
dock env unset DEBUGApplying changes
Restart or redeploy after changing variables. Redeploying is safest when your build also depends on the variable.
Database variables
When you link a database to a project, DockHosting injects database connection variables on the next deploy.