Predefined variables
DollarDeploy automatically creates environment variables which you can use when deploying your apps.
List of the predefined env vars
APP_HOSTNAME
- primary associated hostname of the appAPP_URL
- https url for primary hostnameAPP_ALIASES
- additional hostnames or blankGIT_TAGS
- latest git hash or tag, automatically updated when deployingGIT_LAST_COMMIT
-+ latest commit message NODE_ENV=production
- automatically set for NodeJS appsUSER_EMAIL
- email address of the user who deploy the app
Docker Compose only
This variables only available in Docker Compose when you deploy the app.
USER_UID
- Current user IDUSER_GID
- Current user group ID
Set during launching an app
These are set if needed during an app launch.
GENERATED_PWD
- 10-char alphanumeric you can use in passwordsGENERATED_HASH
- 32-char alphanumeric you can use in tokens / salt / etcGENERATED_SECRET
- 64-char alphanumeric, compatible withopenssl rand -hex 32
Internal env vars
-
DEPLOY_HOSTNAME_MATCH
- if defined and 0, will skip checking hostname matches IP address of the host. Usefull for early IPv6 support and if you use CloudFlare in front of your server. -
NGINX_NO_CANONICAL_REDIRECT
- disable redirecting to the canonical hostname for the app. Useful if you have wildcard domain managed by Cloudflare in front of your server.
Additional, framework specific env vars
These mostly disable telemetry or verboseness of the libraries or frameworks in use.
export SEMGREP_SEND_METRICS=off
export COLLECT_LEARNINGS_OPT_OUT=true
export STORYBOOK_DISABLE_TELEMETRY=1
export NEXT_TELEMETRY_DISABLED=1
export SLS_TELEMETRY_DISABLED=1
export SLS_NOTIFICATIONS_MODE=off
export DISABLE_OPENCOLLECTIVE=true
Environment vars available when you add services to the host
POSTGRES_URL
- if you add Postgres service to the hostREDIS_URL
- if you add Redis service to the host