Skip to main content

Environment Variables

Complete reference for the .env file consumed by the production docker-compose.yml.

Required In The Generated .env

VariableDescriptionExample
BETTER_AUTH_SECRETSession signing secret (min 32 chars)openssl rand -hex 32
BETTER_AUTH_URLPublic URL of DaoFlow instancehttps://deploy.example.com
ENCRYPTION_KEYSecret encryption key (exactly 32 chars)openssl rand -hex 16
POSTGRES_PASSWORDDaoFlow application database passwordopenssl rand -hex 16
TEMPORAL_POSTGRES_PASSWORDTemporal database passwordopenssl rand -hex 16

DATABASE_URL, REDIS_URL, and most container-local defaults are constructed inside the compose stack and are not normally hand-authored in this .env file.

Version And Ports

VariableDefaultDescription
DAOFLOW_VERSIONlatestDaoFlow image tag
DAOFLOW_PORT3000Host port bound to the control plane
TEMPORAL_UI_PORT8233Host port for Temporal UI

Initial Owner Bootstrap

VariableDescription
DAOFLOW_INITIAL_ADMIN_EMAILOptional first owner email
DAOFLOW_INITIAL_ADMIN_PASSWORDOptional first owner password

Execution And Temporal

VariableDefaultDescription
DEPLOY_TIMEOUT_MS600000Max runtime for one deployment execution
DAOFLOW_ENABLE_TEMPORALfalseEnables durable Temporal-backed orchestration
TEMPORAL_ADDRESStemporal:7233 in generated installsTemporal connection target
TEMPORAL_NAMESPACEdaoflowTemporal namespace
TEMPORAL_TASK_QUEUEdaoflow-deploymentsTemporal task queue

Email (SMTP)

VariableDescription
SMTP_HOSTSMTP server hostname
SMTP_PORTSMTP port
SMTP_USERSMTP username
SMTP_PASSWORDSMTP password
SMTP_FROMFrom address for emails

Optional Backup Storage (S3)

VariableDescription
S3_ENDPOINTS3-compatible endpoint URL
S3_BUCKETBucket name for backups
S3_ACCESS_KEYS3 access key
S3_SECRET_KEYS3 secret key
S3_REGIONAWS region (optional)

Advanced Runtime Overrides

These are usually set inside the compose file rather than in your .env, but they are part of the runtime contract:

VariableDefaultDescription
PORT3000Internal HTTP port inside the DaoFlow container
NODE_ENVproduction in composeRuntime mode
GIT_WORK_DIR/app/stagingFrozen deploy artifact workspace
SSH_KEY_DIR/app/.sshSSH key storage for managed targets
SERVER_READINESS_POLL_INTERVAL_MS60000Interval for recurring persisted server readiness checks