Services





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
- Click Deploy stack
- Sign in or create an account
- 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
- Fill in necessary fields (if they are, e.g. link to your repository)
- 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/"
Replacinghttp://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
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:
- Create scheduled backups of your database to different storage providers
- Add your custom domains and get free TLS certificate by Let’s Encrypt
- Check online logs and metrics
- Update your apps using Webhooks
- Scale your app(s) and host(s)
- Migrate containers to other hosts
- Add load balancer (HAProxy) in two clicks