From be11a22c3d160a776c2a9e69e07a04be860e9ae9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2026 07:34:17 +0000 Subject: [PATCH 1/2] docker: bump mysql from 8.4.11 to 26.7.0 in the docker-compose group Bumps the docker-compose group with 1 update: mysql. Updates `mysql` from 8.4.11 to 26.7.0 --- updated-dependencies: - dependency-name: mysql dependency-version: 26.7.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: docker-compose ... Signed-off-by: dependabot[bot] --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 257d74c..cfd13d5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -62,7 +62,7 @@ services: condition: service_healthy mysql: - image: mysql:8.4.11 + image: mysql:26.7.0 container_name: ${COMPOSE_PROJECT_NAME:-wordpress}-db environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?set MYSQL_ROOT_PASSWORD in .env - ./dev.sh up generates it} From b88a7130c5745eb254f03375990c3dddbcfa54c4 Mon Sep 17 00:00:00 2001 From: jackwjensen <48677596+jackwjensen@users.noreply.github.com> Date: Thu, 22 Oct 2026 21:37:37 +0200 Subject: [PATCH 2/2] Document the move to MySQL 26.7 and the 9.7 step it needs Jack chose MySQL 26.7.0 (Dependabot #5) over staying on 8.4 LTS (2026-10-22). 26.7 is an Innovation release, supported only until the next one, so the docs stop calling the stack LTS: README, SECURITY.md, CLAUDE.md, docs/architecture.md, CHANGELOG. The hazard the diff cannot show: MySQL rejects an in-place upgrade from 8.4 straight to 26.7 -- the supported route is 8.4 -> 9.7.x LTS -> 26.7 (dev.mysql.com/doc/refman/26.7/en/upgrade-paths.html). A site or local stack with an existing 8.4 volume would not start its database. PUBLISH_NOTES.md now says to dump first, then either step through mysql:9.7.2 or reload the dump into a fresh volume, and that the rollback is a dump restore on 8.4.11, since data 26.7 has opened cannot go back in place. mysql:9.7.2 confirmed on Docker Hub. A fresh clone starts empty and is unaffected. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 3 +++ CLAUDE.md | 2 +- PUBLISH_NOTES.md | 32 +++++++++++++++++--------------- README.md | 8 +++++--- SECURITY.md | 2 +- docs/architecture.md | 7 +++++-- 6 files changed, 32 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa0107a..466fa33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -117,6 +117,9 @@ database). - **The deploy pulls before it builds** (`docker compose pull --ignore-buildable`, then `build --pull`), so a server fetches a newly pinned tag and same-tag security rebuilds; the rollback stays unpulled. See PUBLISH_NOTES.md. +- **MySQL 26.7.0** (Innovation) instead of 8.4 LTS. MySQL will not open 8.4 data on 26.7 + in place: an existing site's database goes through 9.7 LTS first, or is dumped and + reloaded — see PUBLISH_NOTES.md before deploying. - CI installs its test tools from `engineering_standards/requirements.txt` (ruff 0.16.10, pytest 9.1.1) instead of versions typed into the workflow. diff --git a/CLAUDE.md b/CLAUDE.md index 102e842..999a1e6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,6 +1,6 @@ # WordPress Docker Template -Claude context for this repo. It's a clone-and-own template for Dockerised WordPress sites: one OpenLiteSpeed container (WordPress 7.1 + lsphp 8.5, ready for LiteSpeed Cache), MySQL 8.4 LTS, local dev via Docker Compose, CI + GHCR releases, and an optional SSH deploy to any Docker host. The user-facing guide is `README.md`; the knowledge behind it is in `docs/` (index below); this file holds what must be known before touching anything. +Claude context for this repo. It's a clone-and-own template for Dockerised WordPress sites: one OpenLiteSpeed container (WordPress 7.1 + lsphp 8.5, ready for LiteSpeed Cache), MySQL 26.7 (Innovation; 8.4 data must go through 9.7 first), local dev via Docker Compose, CI + GHCR releases, and an optional SSH deploy to any Docker host. The user-facing guide is `README.md`; the knowledge behind it is in `docs/` (index below); this file holds what must be known before touching anything. ## Using this template diff --git a/PUBLISH_NOTES.md b/PUBLISH_NOTES.md index 10afba5..29ef3c9 100644 --- a/PUBLISH_NOTES.md +++ b/PUBLISH_NOTES.md @@ -27,24 +27,26 @@ wizard (which the health check counts as healthy). **Rollback:** repository variable `DEPLOY_USER=root`, revert the commit and push, and point the proxy back at `-wordpress`. -### The deploy now pulls images; MySQL is pinned to 8.4.11 -**Applies to:** any deployed site that takes this version. Informational for the template -itself, which deploys nowhere. +### The deploy now pulls images; MySQL moves to 26.7.0 (Innovation) +**Applies to:** any deployed site that takes this version, and any local dev stack with an +existing `mysql-data` volume. Informational for the template itself, which deploys nowhere; +a fresh clone starts on an empty volume and is unaffected. **Why it matters:** until now no deploy pulled, so the server kept whichever `mysql:8.4` it -first downloaded — possibly months old. The first deploy with this change pulls -`mysql:8.4.11` and recreates the database container on it: a MySQL patch upgrade within the -8.4 LTS line, applied to the live data at that restart. It also needs Docker Hub reachable -from the server at deploy time (the rollback does not). +first downloaded. The first deploy with this change pulls `mysql:26.7.0`, and **MySQL refuses +an in-place upgrade from 8.4 straight to 26.7**: the only supported route is 8.4 LTS → 9.7.x +LTS → 26.7 ([upgrade paths](https://dev.mysql.com/doc/refman/26.7/en/upgrade-paths.html)). +Deployed as-is on 8.4 data, the database container does not start and the site is down +until the deploy rolls back. 26.7 is an Innovation release: it is supported only until the +next Innovation release (26.10), so keep taking Dependabot's MySQL bumps. The deploy also +needs Docker Hub reachable from the server (the rollback does not). **Before deploying:** take a database dump (`docker compose exec mysql mysqldump …`, or the -server's backup routine) and note the running version: -`docker compose exec mysql mysql --version`. -**After:** `docker compose exec mysql mysql --version` reports 8.4.11; check +server's backup routine) and keep it. Then either step the volume through 9.7 first +(set `image: mysql:9.7.2` on the server, `docker compose up -d mysql`, wait for healthy, +check `docker logs -db`), or load the dump into a fresh 26.7 volume after the deploy. +**After:** `docker compose exec mysql mysql --version` reports 26.7.0; check `docker logs -db` for upgrade errors; load the public URL and confirm 200. -**Rollback:** the deploy's automatic rollback recreates the containers from the previous -commit, whose `mysql:8.4` is still the server's older cached copy — so the database steps -back to that patch release on data 8.4.11 has opened. MySQL supports in-place downgrades -within the 8.4 LTS series; if it will not start anyway, restore the dump into a fresh -volume. +**Rollback:** data that 26.7 (or 9.7) has opened cannot go back to 8.4 in place. Restore the +dump into a fresh volume on `mysql:8.4.11` and revert the commit. ## Deployed diff --git a/README.md b/README.md index 4e537f7..22d107a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ![WordPress 7.1](https://img.shields.io/badge/WordPress-7.1-21759B?logo=wordpress&logoColor=white) ![OpenLiteSpeed](https://img.shields.io/badge/OpenLiteSpeed-1.9-0E7DC2) ![PHP 8.5](https://img.shields.io/badge/PHP-8.5-777BB4?logo=php&logoColor=white) -![MySQL 8.4 LTS](https://img.shields.io/badge/MySQL-8.4_LTS-4479A1?logo=mysql&logoColor=white) +![MySQL 26.7](https://img.shields.io/badge/MySQL-26.7-4479A1?logo=mysql&logoColor=white) [![GHCR](https://img.shields.io/badge/ghcr.io-container-2496ED?logo=docker&logoColor=white)](https://github.com/jackwjensen/wordpress-docker-template/pkgs/container/wordpress-docker-template) **Clone it, run one command, and you have a full WordPress + MySQL development @@ -14,7 +14,7 @@ environment in Docker — ready to build a site on.** When you're ready, deploy to any Docker host, take it onto your own account, and (if you like) keep pulling improvements from upstream. -Modern stack — **WordPress 7.1 · OpenLiteSpeed · PHP 8.5 · MySQL 8.4 LTS** — +Modern stack — **WordPress 7.1 · OpenLiteSpeed · PHP 8.5 · MySQL 26.7** — ready for the LiteSpeed Cache plugin's server-side page cache, with GitHub Actions CI, a published image on GHCR, and an optional one-push deploy with automatic rollback. @@ -59,7 +59,9 @@ its first run; no password is ever committed.) official LiteSpeed image with WordPress core from the official WordPress image, tuned PHP upload limits baked in, and the server-side page cache that the [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/) plugin needs. -- **MySQL 8.4 LTS** with a real authenticated health check. +- **MySQL 26.7** (an Innovation release — Dependabot proposes each next one) with a + real authenticated health check. A site already on MySQL 8.4 must go through 9.7 + first; see PUBLISH_NOTES.md. - **CI on every push/PR** — ShellCheck, Hadolint, Compose validation, actionlint, plus a build + smoke test (see the badge above). - **Published image** on GHCR, built and released from a version tag (keyless). diff --git a/SECURITY.md b/SECURITY.md index ef7df63..b2d872b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -12,7 +12,7 @@ latest release. | older tags | ❌ | The shipped stack tracks current, supported upstream versions (WordPress 7.1, -OpenLiteSpeed 1.9, PHP 8.5, MySQL 8.4 LTS), and Dependabot proposes updates monthly. +OpenLiteSpeed 1.9, PHP 8.5, MySQL 26.7), and Dependabot proposes updates monthly. ## Reporting a vulnerability diff --git a/docs/architecture.md b/docs/architecture.md index ffa47bf..2f6e3cf 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -17,7 +17,7 @@ nginx + PHP-FPM the same day; this template moved from Apache. WP-CLI + `config/uploads.ini` (as `mods-available/zz-uploads.ini`, lsphp's ini scan dir). - WordPress core comes from the official `wordpress:7.1.3-php8.5-fpm` image (multi-stage `core`, with `wp-config-docker.php` removed). Every image and action is pinned to one exact release - (`mysql:8.4.11`, actions by commit SHA); Dependabot proposes the moves. + (`mysql:26.7.0`, actions by commit SHA); Dependabot proposes the moves. - `docker/openlitespeed/` = server config (`httpd_config.conf`: `www-data`, `disableWebAdmin 1`, :8080 + :80 plain HTTP, the cache module), the vhost (`vhconf.conf`: `.htaccess` rewrites), `entrypoint.sh` (core install/upgrade → `make-wp-config.php` → configuration into the tmpfs → @@ -26,7 +26,10 @@ nginx + PHP-FPM the same day; this template moved from Apache. - `php` on the PATH is lsphp's CLI; WP-CLI runs on it through the `wp` wrapper. The image puts `/usr/local/bin` first on the `PATH`: the base image lists it last and ships its own unwrapped `/usr/bin/wp`, which would otherwise shadow the pinned one. -- MySQL 8.4 LTS is the database. +- MySQL 26.7 is the database: an Innovation release, supported only until the next one, so + take Dependabot's MySQL bumps as they come (Jack chose it over 8.4 LTS, 2026-10-22). MySQL + refuses to open 8.4 data on 26.7 in place; such a volume goes through 9.7 LTS first, or is + dumped and reloaded (PUBLISH_NOTES.md). ## Why LiteSpeed, not Apache or nginx