moveyourdigital / docker-wordpress-fpm

WordPress, PHP-FPM, WP-CLI, A

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordPress for Docker (extends official image)

The official image works well for a simple WordPress installation, however, what happens if you want to deploy WordPress in Docker Swarm and scale it for more than two instances?

This Dockerfile has built-in steroids to handle scalling and includes:

Does it sound awesome? Give it a try!

Usage

Refer to the docker-compose.yml file for a comprehensive example.

Architectural concept

The main idea was to scale WordPress using two Docker Swarm nodes. We manage to have it with the following architecture:

  • One WordPress instance running in each node
  • Memcached running in one node
  • A AWS S3 bucket to store media
  • One MariaDB Maxscale running in one node
  • One master MariaDB running in the first node
  • One slave MariaDB running in the second node

About

WordPress, PHP-FPM, WP-CLI, A


Languages

Language:Dockerfile 45.3%Language:Shell 40.4%Language:PHP 14.3%