Skip to content

Environment Variables

Configuration from .env. See .env.example for defaults.

General

Variable Default Required
DB_NAME database_name Yes
DB_USER database_user Yes
DB_PASSWORD database_password Yes

When using a DSN, you can remove the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST variables

Variable Default Required
DATABASE_URL mysql://database_user:database_password@databas... Optional

Optional database variables

Variable Default Required
DB_HOST localhost' # Use 'db' when running via Docke... Optional
DB_PREFIX wp_ Optional
WP_ENV development Yes
WP_HOME http://example.com Yes
WP_SITEURL ${WP_HOME}/wp Yes

Specify optional debug.log path

Variable Default Required
WP_DEBUG_LOG /path/to/debug.log Optional

Generate your keys here: https://roots.io/salts.html

Variable Default Required
AUTH_KEY generateme Yes
SECURE_AUTH_KEY generateme Yes
LOGGED_IN_KEY generateme Yes
NONCE_KEY generateme Yes
AUTH_SALT generateme Yes
SECURE_AUTH_SALT generateme Yes
LOGGED_IN_SALT generateme Yes
NONCE_SALT generateme Yes

CORS

Variable Default Required
TINNITUS_CORS_ORIGINS http://localhost:3000,capacitor://localhost Optional

Brevo (email delivery)

Variable Default Required
BREVO_API_KEY Optional

These env vars are only used by the content-automation pipeline, not by the theme.

Variable Default Required
POSTHOG_PROJECT_ID Optional
POSTHOG_PERSONAL_API_KEY # phx_... from https://eu.posthog.com/se... Optional
POSTHOG_HOST https://eu.posthog.com Optional

Docker Compose only (not read by WordPress)

Variable Default Required
DB_ROOT_PASSWORD rootpassword Optional