Skip to content

sskender/wordpress-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Docker

Run a scalable and a high availability Wordpress website in Docker swarm

Connecting machines

Install Docker on each server.

Run manager node:

docker swarm init --advertise-addr=xxx.xxx.xxx.xxx

Connect worker nodes:

docker swarm join --token <token> xxx.xxx.xxx.xxx:2377

Running

Run stack:

docker stack deploy --compose-file docker-compose.yml wpstack

Re-scale wordpress service:

docker service scale wpstack_wordpress=4

Update wordpress service image:

docker service update wpstack_wordpress

Remove stack:

docker stack rm wpstack

Features

  • encrypted overlay network
  • wordpress volume mounted to a shared persistance storage array
  • database performance configured for a server with 4CPUs and 8GB of RAM

Disclaimer

This configuration is intended to run behind a proxy with SSL and a firewall.

Model

Image is showing the stack running on three Ubuntu demo servers. Database is on the manager node, and two wordpress instances on each worker node.

Model

Help guides:

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy