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

Requirement Recommended
App type craftcms
Runtime PHP 8.4
Database MySQL 8.4 (or PostgreSQL)
Cache Redis
Web server Nginx (Varnish optional)

Configure it

  1. Open your host and go to the Applications tab.
  2. Select Add app or database and set App Type to craftcms.
  3. Choose PHP 8.4 as the runtime and list both the apex and www server names.
  4. Enable MySQL and Redis for the database and cache.
  5. 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

Why these choices

  • app_type: craftcms applies 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.com and www.example.com covers 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.