The Public Data Object

Reference for the public data object in Waddle templates, which holds the settings for each piece of software, like PHP, Nginx, MariaDB, Redis and Node.

public is a reflection of .config.public.json, the public configuration file Waddle keeps on disk for each project. It holds every provider’s own settings: PHP, Nginx, MariaDB, Redis, Node, Composer, OpenSearch and so on.

Top-level fields

Field Type Comment
php Php PHP-FPM and CLI configuration.
nginx Nginx Nginx web server configuration.
mariadb Mariadb MariaDB database configuration.
redis Redis Redis configuration.
node Node Node.js configuration.
composer Composer Composer configuration.
opensearch Opensearch OpenSearch configuration.
mail Mail Project-wide outgoing mail toggle.
mailcatcher Mailcatcher Local development SMTP catcher.
smtp Smtp Remote SMTP relay used in place of MailCatcher once deployed.
phpmyadmin Phpmyadmin phpMyAdmin toggle.
website Website The website’s own settings: platform, URL, admin details.
remotes Remotes The project’s configured production, stage, and dev remotes.
isolate_networks Boolean Whether each service gets its own isolated Docker network (a “star” topology) instead of sharing one.
gitignore_website_src Boolean Whether website/src is kept out of the project’s git repository.

Php

Field Type Comment
install Boolean Whether PHP is enabled for this project.
install_cron Boolean Whether the separate PHP cron container is enabled.
version VersionFilter Constraint used to resolve the installed PHP release.
compile_options Array of CompileOption Compile-time build options.
extensions Array of Extension PHP extensions to install.
docker Guest Guest distro configuration.
prefix String Filesystem path inside the container to the PHP installation directory.
parallel_build_jobs String Number of parallel make jobs to use when compiling.
harden Boolean Whether hardened build flags and configuration directives are applied.
ram Integer Memory limit, in megabytes. For the PHP daemon, not the container it lives inside.
cron_jobs Array of CronJob Scheduled jobs run in the PHP cron container.
fastcgi_port Integer Port PHP-FPM listens on.

Nginx

Field Type Comment
install Boolean Whether Nginx is enabled for this project.
version VersionFilter Constraint used to resolve the installed Nginx release.
compile_options Array of CompileOption Compile-time build options.
docker Guest Guest distro configuration.
prefix String Filesystem path inside the container to the Nginx installation directory.
parallel_build_jobs String Number of parallel make jobs to use when compiling.
harden Boolean Whether hardened build flags and configuration directives are applied.
http_port Integer, or empty HTTP port. Empty when plain HTTP is turned off.
https_port Integer, or empty HTTPS port. Empty when HTTPS is turned off.
letsencrypt Boolean Whether Let’s Encrypt is configured on remote environments to automate TLS certificates.

Mariadb

Field Type Comment
install Boolean Whether MariaDB is enabled for this project.
version VersionFilter Constraint used to resolve the installed MariaDB release.
compile_options Array of CompileOption Compile-time build options.
docker Guest Guest distro configuration.
prefix String Filesystem path inside the container to the MariaDB installation directory.
parallel_build_jobs String Number of parallel make jobs to use when compiling.

Redis

Field Type Comment
install Boolean Whether Redis is enabled for this project.
version VersionFilter Constraint used to resolve the installed Redis release.
docker Guest Guest distro configuration.
prefix String Filesystem path inside the container to the Redis installation directory.
parallel_build_jobs String Number of parallel make jobs to use when compiling.

Node

Field Type Comment
install Boolean Whether Node.js is enabled for this project.
install_cron Boolean Whether the separate Node cron container is enabled.
version VersionFilter Constraint used to resolve the installed Node release.
docker Guest Guest distro configuration.
prefix String Filesystem path inside the container to the Node.js installation directory.
cron_jobs Array of CronJob Scheduled jobs run in the Node cron container.

Composer

Field Type Comment
install Boolean Whether Composer is enabled for this project.
version VersionFilter Constraint used to resolve the installed Composer release.

Composer has no docker field of its own; it runs inside the PHP container.

Opensearch

Field Type Comment
install Boolean Whether OpenSearch is enabled for this project.
version VersionFilter Constraint used to resolve the installed OpenSearch release.
docker Guest Guest distro configuration.
prefix String Filesystem path inside the container to the OpenSearch installation directory.
insecure Boolean Whether OpenSearch’s security plugin is disabled.
jvm_heap_size Integer OpenSearch’s JVM heap size, in megabytes.

Mail

Project-wide outgoing mail toggle, shared by MailCatcher locally and the SMTP relay on remotes; not a container of its own.

Field Type Comment
enabled Boolean Whether outgoing mail handling is enabled for the project.
smtp_port Integer SMTP port used by MailCatcher locally and the SMTP relay on remotes. Defaults to 1025.
from_email String, or empty Default “From” address for outgoing mail. Falls back to public.website.admin_email when unset, see the coalesce helper.

Mailcatcher

Local-only inbox that intercepts outgoing mail during development. Never used on remotes, see Mail Architecture.

Field Type Comment
docker Guest Guest distro configuration.
http_port Integer Local port for MailCatcher’s web UI. Defaults to 1080.

Smtp

The outgoing relay used in place of MailCatcher once a project is deployed to a remote.

Field Type Comment
docker Guest Guest distro configuration.
host String, or empty Relay hostname.
port Integer Relay port. Defaults to 587.
security String none, starttls, or tls. Defaults to starttls.
username String, or empty Relay authentication username.
from String, or empty “From” address used when sending through the relay.

The relay password isn’t here. It’s local-only data: see smtp_password on Private.

Phpmyadmin

Field Type Comment
install Boolean Whether phpMyAdmin is enabled for this project.

Website

Field Type Comment
platform String Which supported CMS/framework the project uses (wordpress, magento, laravel, drupal, and so on), or blank/webstack for none.
mod String, or empty A modification layered on the platform, currently only woocommerce (for WordPress).
url String The website’s local URL.
root String Document root, relative to the project.
version VersionFilter Constraint for the platform’s own version, where applicable.
db_name String Database name.
db_charset String Database charset.
db_collation String Database collation.
admin_email String Site admin email address.
admin_username String Admin account username.
admin_firstname String Admin account first name.
admin_lastname String Admin account last name.
admin_route String Admin login path, for platforms that support customizing it.
title String Site title.
currency String Store currency, for platforms that support it.
language String Site language.
deploy_sample_data Boolean Whether to install sample/demo content on creation.

The admin password and database credentials aren’t here. They’re sensitive local-only data: see website_credentials on Private.

Remotes

Field Type Comment
production Remote, or empty The project’s production remote, when configured.
stage Remote, or empty The project’s stage remote, when configured.
dev Remote, or empty The project’s dev remote, when configured.

production, stage, and dev are each this shape:

Field Type Comment
remote_type String production, stage, or dev.
domain String The remote’s domain.
username String SSH username.
auth_method String password or ssh_key.
key_file String, or empty Path to the SSH key file, when auth_method is ssh_key.
project_path String Absolute path to the project on the remote host.
port Integer SSH port. Defaults to 22.
smtp_relay Boolean Whether this remote uses public.smtp for outgoing mail.

The remote’s own login password isn’t here. It’s local-only data: see remote_passwords on Private.