Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 12 min read How-to mediumAdept

Dockerize WordPress: Simplify Your Site’s Setup and Deployment

WordPress can run in Docker Compose as three services: a Bitnami WordPress container, MariaDB, and Traefik as a reverse proxy that obtains Let's Encrypt TLS certificates automatically. The guide walks through a .env file of credentials, a Compose file with named volumes, external networks, health checks and service_healthy dependencies, and Traefik labels for HTTPS routing, compression, an HTTP-to-HTTPS redirect and a basic-auth-protected dashboard. It also covers creating the networks, deploying with docker compose, verifying the containers, and migrating an existing site's files and MySQL data into the containers.

Related posts

  • Docker for Web Developers: Getting Started with the Basics

    Docker easyNovice

    Docker containers give web developers consistent environments from local development to production, lighter resource use than virtual machines, fast setup and teardown, isolation between services, and portability. A six-step Windows walkthrough covers installing Docker Desktop with the WSL 2 backend and writing a two-line Dockerfile that serves static files from httpd:2.4. It then builds and runs the image, publishes container port 80 to host port 8080 with -p or a Compose file, and replaces a running container with docker stop, rm and run.

  • How to Dockerize a Django App: Step-by-Step Guide for Beginners

    Docker mediumAdept

    Containerizing a Django app starts with a basic Dockerfile and ends with a production-oriented setup: environment-driven settings, a multi-stage build on python:3.13-slim, a non-root user and Gunicorn instead of runserver. These changes cut the image from about 1.55 GB to 299 MB. A Docker Compose file then pairs the Django container with PostgreSQL 17, using a .env file for secrets and database settings. The guide closes with fixes for common connection, file-sync and crash-loop problems.

  • Docker Desktop 4.34: MSI Installer GA, Upgraded Host Networking, and Powerful Enhancements for Boosted Productivity & Administration

    Docker mediumAdept

    Docker Desktop 4.34 makes the MSI installer generally available for Docker Business, with silent installs and an `--allowed-org` flag that writes a Windows registry key to enforce sign-in to a specific organization. Host networking (`--net=host`) now works on Windows, macOS and Linux, so containers and the host can reach each other's TCP/UDP services over localhost. On WSL2 with the Mono distribution, quitting the app compacts the virtual disk when at least 16GB can be reclaimed. `docker login` now uses a browser-based flow that creates the access token automatically, `docker image list --tree` shows multi-platform images, and fresh installs default to the containerd image store.

  • Leveraging Testcontainers for Complex Integration Testing in Mattermost Plugins

    Docker mediumAdept

    Mattermost replaced brittle mock-based plugin tests with Testcontainers-driven integration tests that spin up a Mattermost server, PostgreSQL on an internal Docker network, and optional API mock containers. A custom Go module exposes helpers for plugin installation, DB access, the Go API client and admin operations, while Testcontainers for Node.js pairs with Playwright for UI-level tests. The approach is used for the AI Copilot plugin (mocked LLM API) and the MS Teams plugin (mocked Microsoft Graph), giving isolated, repeatable tests where teams choose per-test or shared container lifetimes.

  • Beyond Docker Compose: An Alternative for Deploying Postgres for Testing

    Neon mediumAdept

    Docker Compose with the official Postgres image gives each developer and CI run an isolated test database, but it struggles with production-like seed data, leftover state between runs, and RAM/CPU overhead. The usual workarounds each cost something: custom data images get bloated, seeding containers slow test startup, shared staging databases cause contention, and tmpfs uses a lot of RAM. Neon's alternative is copy-on-write database branches, which share storage with a parent database and get their own compute, so tests start against prepopulated data in a clean, isolated state. Local containers remain the better fit for offline work, full local control and light testing needs, while branches suit parallel CI and complex test scenarios.

The quest for software engineering knowledge.

Look:
Layout: