Services


MariaDB 10.2

Redis 4.0

Magento 2

phpMyAmin Stable

NGINX 1.15

Overview

Magento is one of the most popular open-source e-commerce platform written in PHP. 

Magento stack provides a one-click install solution for Magento app. The whole deployment with this stack takes about 5 minutes.

How to deploy a stack
  1. Click Deploy stack
  2. Sign in or create an account
  3. Choose a provider (how to add a cloud provider) and a region or an existing host (how to add own host to D2C) in Select existing hosts menu
  4. Fill in necessary fields (if they are, e.g. link to your repository)
  5. Click Create hosts and services
Your administration panel

By default, you’ll get a domain for your Magento shop like [servicename]-[www].[accountID].[at].d2c.io. 

Administration panel is available at [domain]/URI (which you specify during creating a stack)

Configuring custom domain and getting free TLS certificates

You can add your domains with free Let’s Encrypt certificates using the following instruction:

  • Open an NGINX service 
  • click “Edit settings”
  • find “Configure services” block
  • click Generate new config, choose HTTPS, FastCGI mode and click Generate
  • choose Own domains and specify domains and/or subdomains at domains field
  • turn on Serve static files
  • click Edit config, paste the sample https config from the stack repository
  • click Update service

After that, you need to set base sercure url for your Magento store and Administration panel. One of the simplest ways is to use Magento CLI:

  • Open a Magento (Docker) service
  • find Containers block and click Terminal
  • then type php $SERVICE_NAME/bin/magento setup:store-config:set --base-url-secure="https://localhost:8080/" Replacing http://localhost:8080/ with your new base-url.
  • after that, clear the cache php $SERVICE_NAME/bin/magento cache:flush
  • and finally, php $SERVICE_NAME/bin/magento setup:store-config:set --use-secure-admin 1 to make your administration panel available via https
You can find more information about Magento configuration in the official documentation.
Add cron tasks

You can add Cron jobs in a simple way using Cron tasks at a service page of Magento:

  • Open a Magento (Docker) service
  • find Cron tasks and click +Add task
  • choose time (you can find examples clicking on drop-down icon)
  • then type a task starting with  php $SERVICE_NAME/bin/magento

Here is an example for reindexing:  php $SERVICE_NAME/bin/magento indexer:reindex

Checking logs of containers (php, nginx, etc.)

You can check live logs at the page of a container. Please, follow the instructions from the Help Center. You may also find information about D2C logs in the documentation.

Minimal recommended configuration
  • 1 host with 2GB RAM
After deploying

You can: