Tested on Ubuntu 22.04

This script deploys a WordPress stack via Docker Compose. There are two versions of this script, one for Nginx and one for Apache.

It prompts for the following parameters:

  • the WordPress domain
  • the WordPress port
  • the PHPMyAdmin port

Nginx version: (Github raw, repo link)

bash <(curl -sSL https://jrussell.sh/deploy-wordpress-docker-nginx)
  • uses Nginx as the container's web server
  • exposes the HTTPS port to the Docker host
    • this involves a redirect from HTTP, so it does not provide true HTTPS
  • uses certificate and key files located in /etc/ssl/private that match the domain name provided

Apache version: (Github raw, repo link)

bash <(curl -sSL https://jrussell.sh/deploy-wordpress-docker-apache)
  • uses Apache as the container's web server
  • exposes the HTTP port to the Docker host