Deploy Craft CMS on TurboStack
Deploy Craft CMS on TurboStack, which provisions the PHP runtime, MySQL database, Redis, optional Varnish, and periodic cache warming, with an example host YAML included.
Craft CMS is a flexible content management system for building custom applications. TurboStack provisions the runtime and supporting services and warms the cache periodically to keep pages fast.
Requirements
Tip
TurboStack warms the cache periodically, so visitors hit primed pages instead of triggering cold rebuilds.
Configure it
- Open your host and go to the Applications tab.
- Select Add app or database and set App Type to
craftcms. - Choose PHP 8.4 as the runtime and list both the apex and
wwwserver names. - Enable MySQL and Redis for the database and cache.
- Publish the host to apply the configuration.
Example configuration
webserver: nginx
mysql_version: "8.4"
redis_enabled: true
system_users:
- username: prod
vhosts:
- server_name: example.com www.example.com
app_type: craftcms
php_version: "8.4"
cert_type: letsencrypt
Tip
Set the optional app_install key if you want TurboStack to run the initial Craft installation for you.
Why these choices
app_type: craftcmsapplies the Craft CMS runtime profile and enables periodic cache warming.- MySQL 8.4 stores content and structure; PostgreSQL is supported as an alternative.
- Redis accelerates caching and session handling.
- Listing both
example.comandwww.example.comcovers apex and subdomain traffic on one vhost. - Add Varnish for full-page caching on content-heavy sites.
- Let's Encrypt issues and renews Transport Layer Security (TLS) automatically for the listed hostnames.
Related
-
Reference - Redis cache and session configuration.
-
Best practices - performance & stability.
-
Troubleshooting - logs & common fixes.