Skip to content

Database, storage and runtime environment

KeyDefault / purpose
DB_HOST, DB_PORTPrimary host/port; fallback TENANCY_HOST/PORT, then 127.0.0.1/3306.
DB_DATABASE, DB_USERNAME, DB_PASSWORDPrimary database credentials; fallback corresponding TENANCY_DATABASE/USERNAME/PASSWORD.
DB_SOCKETEmpty; optional Unix socket.
BREZEL_CONNECTION_NAMEFallback DB_CONNECTION, then system.
DB_CONNECTIONDefault connection name.
BREZEL_RUNTIME_DB_HOST, BREZEL_RUNTIME_DB_PORTRuntime administration host; port 13306.
BREZEL_RUNTIME_DB_USERNAME, BREZEL_RUNTIME_DB_PASSWORDRuntime administration credentials.

TENANCY_* are compatibility fallbacks for the primary System DB; prefer DB_* for new operator configuration. The control connection must remain separate from an active preview/test connection. PHPUnit uses TEST_TOKEN to suffix parallel test databases.

KeyDefault / purpose
FILESYSTEM_DISKlocal
FILESYSTEM_CLOUDs3
S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEYObject storage credentials.
S3_DEFAULT_REGION, S3_BUCKETRegion and bucket.
S3_ROOTtenancy/tenants
S3_ENDPOINT, S3_URLService endpoint and optional public URL.
S3_USE_PATH_STYLE_ENDPOINTfalse; path-style bucket addressing.
SFTP_HOST, SFTP_PORTHost; port 22.
SFTP_USERNAME, SFTP_PASSWORD, SFTP_ROOTCredentials; root /.

QUEUE_CONNECTION selects the queue connection (see config/queue.php). REDIS_HOST (127.0.0.1), REDIS_PORT (6379), REDIS_USERNAME, REDIS_PASSWORD, REDIS_DB (0) and REDIS_CACHE_DB (1) configure Redis. CACHE_STORE selects stores used by AI runtime caching (database default there). Workers must consume the configured system queue groups; see CLI.

MAIL_DRIVER defaults to smtp; MAIL_HOST defaults to smtp.mailgun.org, MAIL_PORT to 587. MAIL_USERNAME, MAIL_PASSWORD and MAIL_ENCRYPTION configure transport. MAIL_FROM_ADDRESS and MAIL_FROM_NAME set the sender. MAIL_SENDMAIL and MAIL_LOG_CHANNEL configure their respective transports.

Return to environment reference.