Services





Overview
The stack is suitable for highload wordpress sites which you can can scale as you want. It provides a one-click install solution for scalable WordPress with NGINX caching. The whole deployment takes about 10-15 minutes.
How the wordpress stack works
HAProxy on front-end takes requests from users and proxying them to WordPress (PHP-FPM with NGINX). NGINX checks cache: if it has a cached page for the response it sends the page back if has not, NGINX proxying the request to load balancer Haproxy, which distributes the load between several nodes.
As a base is used MariaDB in master/slave configuration with Redis as object cache.

The Scalable WordPress with NGINX cache stack design
How to deploy the 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
Configuring custom domain and getting free TLS certificates
You can add your domains with free Let’s Encrypt certificates using the following instruction:
- Open a HAProxy service
- click “Edit settings”
- find “Configure services” block
- choose Own domains and specify domains and/or subdomains at domains field
- click Update service
Working with Git
You can keep themes and plugins in your Git repositories. If you use this option, don’t forget to remove /themes and /plugins volumes in “Persistent data volumes” 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.
Changes in your config files
You can find and edit your configs using the following instruction:
- open a blog service (Docker service)
- click “Edit settings“
- find “Configs” block and wp-config.php

How to scale
How to scale
To scale a database:
In blog (Docker) service:
- Find Application settings block and set
DB_REPLICATION
environment variable to “on“
- Click Scale
- Choose hosts for slaves
- Click Scale service
To scale a WordPress service, you need to scale blog service (Docker) and follow the next steps:
- Open a blog service
- Click Scale
- Choose hosts you want to use for new blog containers
- Click Scale service
After deploying
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