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
Note
TurboStack can run an automated Magento install. Set magento2_version_to_install and provide your Magento Marketplace composer credentials with magento2_auth_public_key and magento2_auth_private_key.
Configure it
- Open the host's Applications tab.
- Click Add app or database.
- Set App Type to
magento2and choose the PHP runtime under Technologies. - Enable MySQL, Elasticsearch, Redis, and Varnish as services.
- 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.
Related
-
Technologies used: PHP, MySQL, Redis, Varnish, Elasticsearch.
-
Best practices - performance & stability.
-
Magento command-line reference -
php bin/magentoover SSH. -
Troubleshooting - logs & common fixes.