Hardened phpMyAdmin on Debian 13 (trixie) with PHP 8.3, patched vendor deps, and daily CVE gates.
2.3K
A hardened, multi-arch phpMyAdmin container image on Debian 13 (trixie) with PHP 8.3 and Apache, built from the official SHA-256 and GPG-verified upstream release tarball with Composer vendor dependencies refreshed daily to eliminate fixable CVEs, maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/phpmyadminghcr.io/dgcosenza/phpmyadmin (identical signed multi-arch digest)dgcosenza/phpmyadmin-dockerphpmyadmin/phpmyadmin (GPL-2.0-only)| Component | Resolved Version |
|---|---|
| phpMyAdmin | 5.2.3 (GPG-verified + Composer security-patched) |
| PHP + Apache | php:8.3.37-apache-trixie |
| Base OS | Debian 13.8 (trixie) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 195.6 MB, arm64: 595.0 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/phpmyadmin@sha256:147e83fb1f158a982bee94390457254bc0ccb72c68c1ca9a43e3dd301fb761e0 |
| GHCR mirror | ghcr.io/dgcosenza/phpmyadmin@sha256:147e83fb1f158a982bee94390457254bc0ccb72c68c1ca9a43e3dd301fb761e0 |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (48 upstream-unfixed) |
Recent upstream changes:
5.2.3 -> 5.2.38.3.37 -> 8.3.37noIdentical multi-arch OCI digests are published to Docker Hub (dgcosenza/phpmyadmin) and GHCR (ghcr.io/dgcosenza/phpmyadmin), accompanied by an automated signed GitHub Release:
| Tag | Policy | Description |
|---|---|---|
<version>-<YYYYMMDD> (e.g. 5.2.3-20261125) | Immutable | Date-stamped daily rebuild pinning phpMyAdmin and UTC build date. |
sha-<short> | Immutable | Packaging repository Git commit tag. |
<version> (e.g. 5.2.3) | Moving | Latest verified Debian 13 security rebuild of that phpMyAdmin release. |
latest | Moving | Latest verified daily phpMyAdmin build. |
Production pinning: Pin by immutable registry digest rather than an unpinned moving tag:
image: dgcosenza/phpmyadmin:latest@sha256:<digest>
# or via GitHub Container Registry (identical digest):
image: ghcr.io/dgcosenza/phpmyadmin:latest@sha256:<digest>
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Built, smoke-tested (HTTP 200 login UI, :ro user config, hidden PHP header, non-root www-data workers, rootless port 8080, negative healthcheck), Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native x86_64 CI runners. |
linux/arm64 | Published & natively tested | Built, smoke-tested, Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native ARM64 CI runners. |
docker run -d --name phpmyadmin \
--read-only \
--cap-drop ALL \
--cap-add NET_BIND_SERVICE \
--cap-add SETUID \
--cap-add SETGID \
--security-opt no-new-privileges:true \
--tmpfs /sessions:uid=33,gid=33,mode=1777,size=32m \
--tmpfs /var/www/html/tmp:uid=33,gid=33,mode=1777,size=32m \
--tmpfs /var/run/apache2:mode=0755,size=8m \
--tmpfs /tmp:mode=1777,size=32m \
-e PMA_HOST=db \
-e PMA_ARBITRARY=0 \
-p 127.0.0.1:8080:80 \
dgcosenza/phpmyadmin:latest
See docker-compose.example.yml:
services:
phpmyadmin:
image: dgcosenza/phpmyadmin:latest
restart: unless-stopped
read_only: true
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
- SETUID
- SETGID
security_opt:
- no-new-privileges:true
tmpfs:
- /sessions:uid=33,gid=33,mode=1777,size=32m
- /var/www/html/tmp:uid=33,gid=33,mode=1777,size=32m
- /var/run/apache2:mode=0755,size=8m
- /tmp:mode=1777,size=32m
environment:
- PMA_HOST=db
- PMA_ARBITRARY=0
volumes:
- ./config.user.inc.php:/etc/phpmyadmin/config.user.inc.php:ro
ports:
- "127.0.0.1:8080:80"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:80/ >/dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
Full drop-in parity with the official phpmyadmin Docker image:
| Variable | Description | Default |
|---|---|---|
PMA_HOST | Hostname or IP of the MySQL/MariaDB server (*_FILE supported) | — |
PMA_HOSTS | Comma-separated list of database hosts (*_FILE supported) | — |
PMA_PORT | Database server port | 3306 |
PMA_ARBITRARY | Set to 1 to allow entering an arbitrary server at login | 0 |
PMA_USER / PMA_PASSWORD | Fixed login credentials (*_FILE supported) | — |
PMA_ABSOLUTE_URI | Public URL when running behind a reverse proxy | — |
UPLOAD_LIMIT | PHP upload_max_filesize and post_max_size | 2048K |
MEMORY_LIMIT | PHP memory limit | 512M |
MAX_EXECUTION_TIME | PHP script timeout in seconds | 600 |
TZ | PHP date.timezone | UTC |
APACHE_PORT | Override Apache listen port (e.g. 8080 for fully rootless --user 33:33) | 80 |
PMA_CONFIG_BASE64 / PMA_USER_CONFIG_BASE64 | Base64-encoded config overrides | — |
| Path / Port | Purpose |
|---|---|
/etc/phpmyadmin/config.user.inc.php | Custom PHP configuration overrides (mount :ro) |
/sessions | PHP session storage (mode 1777, www-data:www-data) |
/etc/phpmyadmin/ssl | TLS CA/client certificates for encrypted DB connections |
80/tcp | Apache HTTP server (or unprivileged APACHE_PORT=8080 with --user 33:33) |
Apache workers run as non-root www-data (UID/GID 33:33). For fully rootless execution (--user 33:33 --cap-drop ALL), set APACHE_PORT=8080. The web root /var/www/html is read-only (555/444) except /var/www/html/tmp.
curl -fsS http://127.0.0.1:80/
phpmyadminThis image is a direct drop-in replacement for phpmyadmin:latest:
/etc/phpmyadmin/config.user.inc.php mount and PMA_* environment variables unchanged.image: phpmyadmin:latest with image: dgcosenza/phpmyadmin:latest@sha256:<digest> (or GHCR) and run docker compose up -d --no-deps phpmyadmin.Every published digest (multi-arch index and per-architecture manifests) on both Docker Hub and GHCR is keyless-signed with Sigstore Cosign (GitHub OIDC), attested with SPDX and CycloneDX SBOMs, and backed by SLSA Build L3 provenance (actions/attest-build-provenance).
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/phpmyadmin-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/phpmyadmin:latest
# Or against Docker Hub (identical digest):
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/phpmyadmin-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
dgcosenza/phpmyadmin:latest
cosign verify-attestation \
--type spdxjson \
--certificate-identity-regexp="^https://github\.com/dgcosenza/phpmyadmin-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/phpmyadmin@sha256:<arch-digest>
gh attestation verify oci://ghcr.io/dgcosenza/phpmyadmin:latest --owner dgcosenza
--ignore-unfixed gate) and Grype scanning the SPDX SBOM (--only-fixed --fail-on negligible), and enforces a Dive efficiency gate (>= 95%).expose_php=Off, allow_url_fopen=Off, session.cookie_httponly=1, session.use_strict_mode=1, read-only web root, and Composer removed from the final runtime stage.renovate.json) pins base image digests and GitHub Action commit SHAs; Dependabot security alerts and OpenSSF Scorecard monitoring are enabled.SECURITY.md for private disclosure instructions.docker buildx build --platform linux/amd64 --load \
--build-arg PHP_VERSION=8.3.37 \
--build-arg PMA_VERSION=5.2.3 \
-t dgcosenza/phpmyadmin:local .
.github/workflows/daily.yml runs automatically every day at 05:02 UTC, on pushes to main, on pull requests (verification only), and via workflow_dispatch:
phpmyadmin/phpmyadmin) and Docker Hub (library/php 8.3.x-apache-trixie, library/composer) for digest-pinned base images, emitting upstream-changes.md.linux/amd64 and linux/arm64 runners with --no-cache on schedule, upgrades Debian 13 packages, verifies the phpMyAdmin tarball via SHA-256 + GPG (3D06A59ECE730EB71B511C17CE752F178259BD92), and refreshes production Composer dependencies in a discarded stage.tests/smoke.sh natively on both architectures, enforces the Dive efficiency gate (>= 95%), generates Syft SPDX + CycloneDX SBOMs per arch, and gates publication on 0 fixable findings of any severity in both Trivy and Grype (scanning the SPDX SBOM).ghcr.io/dgcosenza/phpmyadmin) and mirrors the identical digest to Docker Hub (dgcosenza/phpmyadmin) with tags latest, <version>, <version>-<YYYYMMDD>, and sha-<short>; signs every digest and attaches SPDX/CycloneDX SBOM attestations via Cosign keyless OIDC; emits SLSA Build L3 provenance; and publishes a signed GitHub Release with checksums and SBOMs.versions.json, the README Current Versions block, and a dated CHANGELOG.md entry via github-actions[bot] ([skip ci], validated by public-check.sh), then syncs the Docker Hub overview and short description.ci-failure on any main or scheduled failure, and auto-closes it on the next green run.php:8.3.x-apache-trixie: phpMyAdmin 5.2.x officially supports PHP <8.4 (>=7.2,<8.4), and php:8.3.x-apache-trixie provides a minimal, Debian 13-native Apache + PHP stack on both amd64 and arm64.composer update --no-dev inside a build stage patches those libraries while keeping Composer out of the runtime image.DL3008 ignore: Daily --no-cache security rebuilds intentionally pull the newest Debian 13 security updates via apt-get.highestUserWastedPercent: 0.15: Overall image efficiency remains strictly gated at >= 95%; daily apt-get -y upgrade and extension builds update a small fraction of php:8.3-apache-trixie base files.This repository follows a clear packaging-vs-upstream license split:
packaging: MIT): Licensed under the MIT License — copyright Daniel G. Cosenza from FNX Labs.upstream: GPL-2.0-only): Copyright the phpMyAdmin developers — licensed under the GNU General Public License v2.0.Full third-party notices are maintained in THIRD-PARTY-NOTICES.md. Release history is maintained in CHANGELOG.md.
Maintained by Daniel G. Cosenza from FNX Labs.
Content type
Image
Digest
sha256:147e83fb1…
Size
186.5 MB
Last updated
about 12 hours ago
docker pull dgcosenza/phpmyadmin