Deploy Magento on TurboStack

Deploy Magento 2 / Adobe Commerce on TurboStack - PHP, MySQL, Elasticsearch, Redis and Varnish - with an annotated example host YAML.

Magento 2 (Adobe Commerce) is an e-commerce platform with high infrastructure requirements. On TurboStack, the platform provisions the PHP runtime, MySQL database, Elasticsearch, and caching services from your host configuration. You deploy by publishing.

Requirements

Requirement Recommended
App type magento2
Runtime PHP 8.4 (or newer)
Database MySQL 8.4
Search Elasticsearch 8.x (REQUIRED)
Cache (Redis) Enabled (sessions + object cache)
Page cache (Varnish) Enabled (recommended)
Web server Nginx

Configure it

  1. Open the host's Applications tab.
  2. Click Add app or database.
  3. Set App Type to magento2 and choose the PHP runtime under Technologies.
  4. Enable MySQL, Elasticsearch, Redis, and Varnish as services.
  5. Publish to apply the configuration.

Example configuration

webserver: nginx
mysql_version: "8.4"           # Magento core database
elasticsearch_version: "8.x"  # REQUIRED by Magento for catalog search
redis_enabled: true            # sessions + object cache
system_users:
  - username: prod
    vhosts:
      - server_name: shop.example.com www.shop.example.com
        app_type: magento2
        php_version: "8.4"
        cert_type: letsencrypt
        varnish_enabled: true  # full-page cache - big TTFB improvement for storefronts

Why these choices

  • MySQL 8.4 holds the Magento core database: catalog, orders, customers, and configuration.
  • Elasticsearch 8.x is required; Magento uses it for catalog and layered-navigation search, and the storefront will not function without it.
  • Redis is used for both sessions and the object cache, keeping checkout state fast and offloading the database.
  • Varnish full-page cache is recommended because it serves cached storefront pages directly, producing a large time-to-first-byte improvement.
  • Nginx is the supported web server for Magento and integrates with its built-in caching layers.