Services





Overview
The stack is suitable for highload WordPress sites which you can scale as you want. It provides a one-click install solution for scalable WordPress with PHP-Apache and pagespeed module. The whole deployment takes about 10-15 minutes.
How it works
HAProxy on front-end takes requests from users and distributes the load between several nodes.
PHP-Apache comes in two containers with installed and enabled WP-CLI, redis-cache, HyperDB plugins and pagespeed module for Apache.
As a database is used MariaDB in MasterSlave configuration with Redis as object cache

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

Minimal recommended configuration
- 2 hosts with 2GB RAM
- 1 host with 1GB RAM
Configuring custom domain and getting free TLS certificates
You can add your domains using the following instruction:
- Open an HAProxy service
- click “Edit settings”
- find “Configure services” block
- click Generate new config, choose HTTP or HTTPS and click Generate
- choose Own domains and specify domains and/or subdomains at domains field
- click Update service
Changes in your config files
You can find and edit your configs using the following instruction:
- open a PHP-Apache service (name “blog” in this stack by default)
- click “Edit settings“
- find “Configs” block

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.
How to scale
Check a quick gif example on how to scale a database (MariaDB) and an app (Python in this case) or follow the next steps:
To scale a database:
- Open a MariaDB service (name “db” in the stack by default)
- Click Scale
- Choose hosts for slaves
- Click Scale service
To scale a WordPress service, you need to scale PHP-FPM service (name “blog” by default in the stack) and NGINX-Cluster (name “cluster” by default) and follow the next steps:
- Open a PHP-FPM service
- Click Scale
- Choose hosts you want to use for new PHP-FPM containers
- Click Scale service
- Do the same with NGINX-Cluster using the same hosts (each PHP-FPM service should be with NGINX-cluster at the same host(s))
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