Skip to main content

Deployments & App Management

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 app
  • APP_URL - https url for primary hostname
  • APP_ALIASES - additional hostnames or blank
  • GIT_TAGS - latest git hash or tag, automatically updated when deploying
  • NODE_ENV=production - automatically set for NodeJS apps

Docker Compose only

  • USER_UID - Current user ID
  • USER_GID - Current user group ID

Set during launching an app

  • GENERATED_PWD - 10-char alphanumeric you can use in passwords
  • GENERATED_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 host
  • REDIS_URL - if you add Redis service to the host