Skip to content

Environment Variables

The project uses a .env file in the repository root. Copy .env.example as your starting point.

For production/cloud environments, secrets are managed via dotenv-vault — the .env.vault and .env.me files handle decryption.

Docker / Project

Variable Example Description
PROJECT_ENV local Environment name (local, dev, prod). Controls which devops/ config is loaded.
PROJECT_NAME barberklingen Base project name used for container names and paths.
PROJECT_URI nl Site identifier appended to PROJECT_NAME.
PROJECT_FULL_NAME barberklingen-nl Derived: ${PROJECT_NAME}-${PROJECT_URI}.

Container Ports

Variable Example Description
MARIADB_CONTAINER_PORT 3306 Host port mapped to MariaDB.
REDIS_CONTAINER_PORT 6379 Host port mapped to Redis.
NGINX_CONTAINER_SSL_PORT 443 Host port mapped to Nginx HTTPS.

Database

Variable Description
DB_HOST MariaDB container name (matches MARIADB_CONTAINER_NAME).
DB_NAME Database name.
DB_USER Database user.
DB_PASSWORD Database password.
DB_ROOT_PASSWORD MariaDB root password.
DB_PORT Database port (same as MARIADB_CONTAINER_PORT).

WordPress

Variable Example Description
WP_ENV development WordPress environment (development, staging, production).
WP_HOME https://barberklingen.nl-local Full URL of the WordPress site (without /wp).
WP_SITEURL https://barberklingen.nl-local/wp Full URL including the WordPress subdirectory.

WordPress Security Keys

Generate unique values using the Roots salts generator or wp-cli-dotenv-command.

AUTH_KEY
SECURE_AUTH_KEY
LOGGED_IN_KEY
NONCE_KEY
AUTH_SALT
SECURE_AUTH_SALT
LOGGED_IN_SALT
NONCE_SALT

Other

Variable Description
ELEMENTOR_EMAIL Elementor Pro licence email.
ELEMENTOR_LICENSE Elementor Pro licence key.
SENTRY_AUTH_TOKEN Sentry auth token for release tracking.
MIX_MODE Laravel Mix mode (development or production).
NODE_ENV Node environment for asset builds.
CRONJOB_WP_DIR Absolute path to the WordPress current directory on the server, used by cron scripts.
DOTENV_KEY Decryption key for dotenv-vault (production only).