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
  • GIT_LAST_COMMIT - + latest commit message
  • NODE_ENV=production - automatically set for NodeJS apps
  • USER_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 ID
  • USER_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 passwords
  • GENERATED_HASH - 32-char alphanumeric you can use in tokens / salt / etc
  • GENERATED_SECRET - 64-char alphanumeric, compatible with openssl 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 host
  • REDIS_URL - if you add Redis service to the host