The EASIEST WordPress Deployment in 2025

I have grown to appreciate the portability and simplicity of containerized applications. When they make sense of course. If you are considering a self-hosted WordPress instance but find the processes of setting up and managing a LAMP server strenuous, then this guide is probably for you!

Deployment Process

  1. Provision an Akamai Compute Instance
  2. Deploy applicable DNS Records
    • Create IPv4 (A) Record
    • Create IPv6 (AAAA) Record
    • Create CNAME Record
  3. Complete Basic Compute Instance Setup
    • Set System Hostname
    • Set System Timezone
  4. Install Software Packages
    • Caddy Webserver
    • Docker Engine
  5. Deploy WordPress using Docker-Compose
  6. Complete Web Setup
  7. Harden your Compute Instance
  8. Harden WordPress Instance

My Example Compose File

services:
  db:
    image: mariadb:10.6.4-focal
    command: '--default-authentication-plugin=mysql_native_password'
    volumes:
      - db_data:/var/lib/mysql
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=MakeThisSecurePlease
      - MYSQL_DATABASE=mywordpress
      - MYSQL_USER=wordpressuser
      - MYSQL_PASSWORD=OhNoASecret
    expose:
      - 3306
      - 33060
  wordpress:
    image: wordpress:latest
    ports:
      - 8000:80
    restart: always
    environment:
      - WORDPRESS_DB_HOST=db
      - WORDPRESS_DB_USER=wordpressuser
      - WORDPRESS_DB_PASSWORD=OhNoASecret
      - WORDPRESS_DB_NAME=wordpress
volumes:
  db_data:

My Example Caddyfile without Logging

*.example.org {
        reverse_proxy 127.0.0.1:8000
}

My Example Caddyfile with Logging

*.example.org {
        reverse_proxy 127.0.0.1:8000

        log {
                output file /var/log/caddy/access.log
                format json
        }
}

References

2025

Back to top ↑

2024

Javascript Cat!

how-to add oneko.js to the minimal-mistakes jekyll template.

Back to top ↑

2023

Ditching WordPress

Method of Procedure for migrating from WordPress to plain HTML.

Mom Said Redefine Success

In High School I had one dream that stands out. Own a Porsche by the time I was 26. Looking back, I have no idea where this dream came from; because I was ra...

Back to top ↑

2022

Back to top ↑

2021

Back to top ↑