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 deployingNODE_ENV=production
- automatically set for NodeJS apps
Docker Compose only
USER_UID
- Current user IDUSER_GID
- Current user group ID
Set during launching an app
GENERATED_PWD
- 10-char alphanumeric you can use in passwordsGENERATED_HASH
- 32-char alphanumeric you can use in tokens / salt / etc
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