Every template Waddle renders shares the same data object. This page documents its top-level fields, plus the shapes reused across several of them.
Provider is Waddle’s term for a single piece of software it manages on a project’s behalf, e.g. PHP, Nginx, or MariaDB. Each one is called a provider because it provides one particular service or feature.
Top-level fields
| Field | Type | Comment |
|---|---|---|
settings |
Settings | Global Waddle app settings, not specific to any one project. |
public |
Public | Every provider’s own settings: PHP, Nginx, MariaDB, Redis, Node, Composer, OpenSearch, Mail, MailCatcher, SMTP, phpMyAdmin, the website itself, and remotes. |
private |
Private | Local-only data that never gets committed: display name, remote passwords, secrets. |
tags |
Tags | The resolved git tag for each piece of software in the stack. |
paths |
Paths | Common guest paths, so templates don’t repeat themselves. |
packages |
Packages | Resolved runtime and compile-time package lists for each software in the stack. |
verifications |
Verifications | Checksums and GPG keys for the software Waddle downloads. |
advanced |
Advanced | Values that aren’t part of a provider’s own config, but are a byproduct of it and still needed to render correctly. |
php_extensions |
PhpExtensions | PHP extensions resolved at render time, split by install method. |
ssl |
Ssl | Local mkcert certificate metadata. |
timezone |
String | The host system’s timezone, so guest containers can be configured to match it. |
project_dirname |
String | The project directory’s basename. |
project_network |
String | The base Docker network name: the project’s dirname with dots replaced by hyphens (dots would otherwise collide with *.localhost loopback routing). |
combined_domain_name |
String | Every configured domain, local plus all remotes, space-separated. Used directly in nginx server_name |
remote_acme_cert_entries |
String | Pre-formatted nginx map entries pairing each remote domain to its ACME certificate. |
remote_acme_key_entries |
String | Pre-formatted nginx map entries pairing each remote domain to its ACME certificate key. |
website_url |
String | The full local website URL, including scheme. |
Common data shapes
List of shapes reused by several fields.
Version
Version number derived from a software release tag.
| Field | Type | Comment |
|---|---|---|
major |
Integer | Major version number. |
minor |
Integer | Minor version number. |
patch |
Integer | Patch version number. |
revision |
Integer | Revision number, when the underlying tag carries one. |
raw |
String | The version as Waddle parsed it out of the git tag, e.g. 8.1.2 |
full_raw |
String | The untouched original git tag string. |
stability_type |
String | One of Alpha, Beta, RC, Stable, Unknown (case-sensitive) |
stability_version |
Integer | The numeric suffix on a pre-release tag, e.g. 2 in 8.1.0-beta2 |
Used by Tag.version
VersionFilter
Not a resolved version, this is the constraint used to pick one.
| Field | Type | Comment |
|---|---|---|
version |
String | A regex pattern matching acceptable versions, e.g. ^8\.1\.[0-9]+$. |
stable |
Boolean | Whether only stable, non pre-release, tags satisfy the filter. |
Used by public.php.version, public.nginx.version, public.mariadb.version,
public.redis.version, public.node.version, public.composer.version,
public.opensearch.version, public.website.version.
A provider’s own version field is the filter used to select a release; the release Waddle
actually resolves lives under tags instead, e.g. tags.php.version (a
Version).
Tag
| Field | Type | Comment |
|---|---|---|
name |
String | The resolved git tag name. |
tar |
String | URL of the corresponding source tarball. |
version |
Version | The parsed version. |
Used by every entry under tags
Guest (Docker)
| Field | Type | Comment |
|---|---|---|
from |
String | The Dockerfile FROM value, e.g. alpine:latest |
distro |
String | Alpine or Debian (case-sensitive) |
version |
String | The distro’s own version number, as a string. |
Used by public.php.docker, public.nginx.docker, public.mariadb.docker,
public.redis.docker, public.node.docker, public.opensearch.docker,
public.mailcatcher.docker, public.smtp.docker
Extension
| Field | Type | Comment |
|---|---|---|
id |
String | The extension’s identifier, e.g. xdebug. |
version |
String | Pinned PECL version, or Composer version constraint for PIE. Empty means latest. |
install_method |
String | auto, pecl, or pie. |
package |
String | Resolved package name at render time: equals id for PECL, a Composer package name like vendor/pkg for PIE. |
Used by public.php.extensions, php_extensions.pecl, php_extensions.pie
CompileOption
| Field | Type | Comment |
|---|---|---|
option |
String | A stable internal id for the compile option, not the literal build flag. The same id can map to a different flag depending on the resolved software version, e.g. PHP’s openssl id is --with-openssl on some versions and --enable-openssl on others. The correct option name is resolved by Waddle at render time. |
arguments |
String | Value passed to the option, if any, e.g. a path for an option like --with-openssl=<path>. |
Used by public.php.compile_options, public.nginx.compile_options,
public.mariadb.compile_options. The actual build flag is only resolved at render time, by the
parse_compile_options and
has_compile_option helpers, based
on the resolved tags.<software>.version.raw
At render time, Waddle also appends options that depend on the rest of the configuration, e.g. the
PHP options Composer or phpMyAdmin need, or options derived from a provider’s prefix. The list a
template sees can therefore be longer than the one stored in .config.public.json.
CronJob
| Field | Type | Comment |
|---|---|---|
schedule |
String | Cron schedule expression. |
command |
String | The command to run on that schedule. |
Used by public.php.cron_jobs, public.node.cron_jobs
PackageList
| Field | Type | Comment |
|---|---|---|
runtime |
Array of String | Packages needed at container runtime. |
compiletime |
Array of String | Additional packages needed only to compile the software, not kept in the final image. |
Used by every entry under packages, and by php_extensions.packages
Settings
settings holds global Waddle app configuration, not specific to any one project. Most of its
fields configure Waddle’s own UI and behavior rather than being useful inside a template; the ones
most likely to matter to one are:
| Field | Type | Comment |
|---|---|---|
top_domain |
String | The default top-level domain for new local sites, e.g. localhost. |
magento_public_key |
String | Magento repository public key, when configured. |
magento_private_key |
String | Magento repository private key, when configured. |
github_token |
String | GitHub token, used when Composer inside a container needs access to private repos. |
preferred_distro |
String | Alpine or Debian. Preferred guest distro family when a provider’s docker is left automatic. |
default_admin_email and default_admin_password are here too, but they only pre-fill new
projects. A template should read the project’s own values instead, which are
public.website.admin_email and private.website_credentials.admin_password.
The remaining fields (simplify_version_input, use_tls, auto_commit_config,
auto_shutdown_for_network, gitignore_website_src_default, warn_before_remote_actions,
terminal_emulator, auto_distro_resolution, builder_backup_rotation, tmp_rotation_size,
last_bug_report_submitted_at, last_feedback_submitted_at, ignored_defects) control Waddle’s
own app behavior and aren’t meant to be read from a template, even though technically nothing
prevents it.
Paths
Shortcut paths to avoid repetitive calls to the
project_path template helper function.
| Field | Type | Comment |
|---|---|---|
project |
String | Absolute guest path to the project root. |
shared |
String | Absolute guest path to the project’s shared directory. |
web_src_shortcut |
String | Absolute guest path to the website source shortcut. |
Tags
tags holds the resolved Tag for each software in the stack configured to be installed.
| Field | Type |
|---|---|
composer |
Tag, or empty |
opensearch |
Tag, or empty |
mariadb |
Tag, or empty |
nginx |
Tag, or empty |
node |
Tag, or empty |
php |
Tag, or empty |
redis |
Tag, or empty |
website |
Tag, or empty |
For example, you would reach the resolved PHP version string with {{tags.php.version.raw}}
Packages
packages holds resolved runtime and compile-time PackageLists per software / feature.
| Field | Type |
|---|---|
opensearch |
PackageList |
mariadb |
PackageList |
nginx |
PackageList |
node |
PackageList |
node_cron |
PackageList |
php |
PackageList |
php_cron |
PackageList |
redis |
PackageList |
mailcatcher |
PackageList |
smtp |
PackageList |
Verifications
verifications holds checksums and GPG keys for the software Waddle downloads, currently
PHP, Nginx, and OpenSearch only. They live under verifications.php, verifications.nginx
and verifications.opensearch, each with this shape:
| Field | Type | Comment |
|---|---|---|
checksum |
String | Expected checksum of the downloaded source. |
gpg_keys |
Array of String | GPG key IDs used to verify the download’s signature. |
Advanced
advanced holds values that aren’t actually part of a provider’s own configuration object, but
are still needed at render time. They’re normally a byproduct of that provider’s configuration
state. PHP’s lib_dir, for example, depends on the guest’s distro, and for Debian only, on the
container’s CPU architecture too.
advanced.php:
| Field | Type | Comment |
|---|---|---|
lib_dir |
String | Resolved library directory for the PHP build. |
install_xdebug |
Boolean | Whether xdebug is present in public.php.extensions. There is no public.php.install_xdebug field; this is the derived value. |
timezone |
String | The host’s timezone, normalized into a form PHP’s date.timezone directive accepts. Use this rather than the top-level timezone in PHP config. |
advanced.mariadb:
| Field | Type | Comment |
|---|---|---|
command |
String | The resolved MariaDB start command. |
advanced.website:
| Field | Type | Comment |
|---|---|---|
magento_timezone |
String | The host’s timezone, normalized into a form Magento 2’s installer accepts. Only used by Magento 2’s templates. |
PHP extensions
php_extensions holds PHP extensions resolved at render time, split by install method.
| Field | Type | Comment |
|---|---|---|
pecl |
Array of Extension | Extensions to install via PECL. |
pie |
Array of Extension | Extensions to install via PIE (Composer-based). |
packages |
PackageList | OS packages needed to support the resolved extensions. |
SSL
ssl holds metadata for the project’s local mkcert certificate.
| Field | Type | Comment |
|---|---|---|
cert_name |
String | Named after the project directory rather than its URL, so the certificate survives URL changes, and allows several projects to specify the same URL without certs colliding. |
enabled |
Boolean | Whether SSL is enabled for the project. |