A guide how to use environment variables in Coolify.
Preview Deployments could have different environment variables, so you can test your application as a staging environment for example.
Build Variable
on the UI.
NODE_ENV
to production
.
Team
page and use it with {{team.NODE_ENV}}
.
Projects
page, under the gear icon and use it with {{project.NODE_ENV}}
.
Environments
page (select a Project
), under the gear icon and use it with {{environment.NODE_ENV}}
.
COOLIFY_FQDN
COOLIFY_URL
COOLIFY_BRANCH
COOLIFY_CONTAINER_NAME
SOURCE_COMMIT
PORT
Port Exposes
’s first port.
HOST
0.0.0.0
.