Skip to main content

Install WordPress on Ubuntu Server with Docker

Run WordPress and its database in Docker containers on your own Ubuntu Server, then put the site online at your own domain with free HTTPS through a Cloudflare Tunnel, with no open ports and no router changes. Add a Redis cache and backups, and remove it all cleanly when you are done.

2 parts · 46 min read

Start with Part 1
  1. Run WordPress with Docker Compose

    · 20 min read

    Step-by-step guide to running WordPress and MariaDB on Ubuntu Server using Docker Compose. Create the project folder, store passwords in a .env file, write compose.yaml, start both containers, and finish the WordPress installer in your browser.

  2. Custom Domain, Free HTTPS, Redis Cache and Backups

    · 26 min read

    Put your Dockerised WordPress site online with a custom domain and free HTTPS using a Cloudflare Tunnel, with no open ports and no router changes. Then add a Redis object cache, set up backups, and learn how to remove everything cleanly.

Stay Updated

Subscribe to our newsletter for the latest tutorials, tech insights, and developer news.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.