Environment Variables

The WADDLE_* environment variables Waddle writes into a project's .env file, what each one does, and where its value comes from.

Waddle writes a handful of WADDLE_* environment variables into a project’s .env file, both locally and on remotes. Docker Compose picks the file up automatically, so these values reach the containers without Waddle having to bake them into docker-compose.yml or any committed config file.

Where the values come from

Some values, like the host UID/GID, are read from the machine Waddle is running the build on. Others, like database credentials, are sensitive, so they are pulled from the project’s private, never-committed configuration instead of anything git-tracked, the same public/private config split described in Domain Handling on Deploy applies here too.

The variables

Variable(s) Purpose
WADDLE_UID / WADDLE_GID Pin container processes to your real host user, so bind-mounted files aren’t left owned by root.
WADDLE_DB_USER / WADDLE_DB_PASSWORD The project’s database credentials, so committed config files and scripts reference them by name instead of embedding the literal secret.

WADDLE_UID/WADDLE_GID are written only when the relevant Docker daemon runs as root; rootless Docker remaps container UID 0 automatically, so Waddle omits them in that case. WADDLE_DB_USER/ WADDLE_DB_PASSWORD are written for every project, regardless of platform.