WordPress
Run WordPress on its own managed MariaDB, with wp-content on a volume.
Goal: a WordPress site on its own MariaDB, served over HTTPS on your domain, with themes, plugins and uploads kept across deploys.
Deploy it
Open New app, pick WordPress from the templates.
On the Dependencies tab, keep Create new for the database (or pick Use existing and a MariaDB app in the project). WordPress gets its own database, named after the app, with admin rights on that database only.
Keep the Table prefix at wp_ unless you import a site that uses
another prefix.
Deploy, then right away open
https://<host>/wp-admin/install.php?setup=<token>, with the Setup
token (WORDPRESS_SETUP_TOKEN) from the app's secrets. The installer
asks for the site title and the admin account.
The installer is locked until then: without the token, install.php answers
403, so nobody who finds a fresh site first can claim it. The token link
sets a cookie for /wp-admin/ so the installer's second step gets through
too. After the install it stays locked, which changes nothing.
The eight keys and salts (WORDPRESS_AUTH_KEY and the rest) are generated
once and stored as secrets. Changing one signs everyone out.
What is stored where
wp-content(5 GiB volume, grow it later): themes, plugins and uploads.- The database: posts, pages, users and settings, in the MariaDB app. Back it up with a backup policy.
- WordPress core comes from the image at each start. Moving to a newer version is a core upgrade; WordPress updates its tables on the next admin visit.
HTTPS
TLS ends at the platform's edge and WordPress sees plain HTTP behind it. The
template sets $_SERVER['HTTPS'] from the X-Forwarded-Proto header and
forces HTTPS for logins and the admin (FORCE_SSL_ADMIN), so links and
cookies use https://. Add a custom domain and
change Settings > General in WordPress to the new address.
Notes
- One instance only:
wp-contentis a single-node volume. - Mail: WordPress sends mail with PHP's
mail(), which has no server here. Use an SMTP plugin with your mail provider's credentials, stored as secrets.