How docker-library/wordpress works
This repository maintains the Docker Official Image for WordPress, with image definitions organized by release channel, PHP version, and Apache or FPM runtime. The likely user workflow is to run a selected image with environment-based configuration and serve a WordPress site. The excerpts show environment-variable and *_FILE configuration handling, including database settings and table prefixes. Entrypoint behavior and the full startup sequence are not sampled, so their relationships are shown only as unverified.
Main entry points: latest Release and runtime variants · wp-config-docker.php Environment configuration · docker-entrypoint.sh Shared startup · apache/docker-entrypoint.sh Apache startup
Components 14
WordPress Images
- Release and runtime variants
latest - Apache image definition
latest/php8.2/apache/Dockerfile - FPM image definition
latest/php8.2/fpm/Dockerfile - Beta image variants
beta - CLI image variants
cli
Container Startup
- Apache startup
latest/php8.2/apache/docker-entrypoint.sh - FPM startup
latest/php8.2/fpm/docker-entrypoint.sh - Shared startup
docker-entrypoint.sh
Site Configuration
- Environment configuration
wp-config-docker.php
Other components
- Image user
- Docker runtime
- WordPress site
- WordPress database
- Container environment
Connections 14
- Image user → Docker runtime: runs image
README.md - Docker runtime → Release and runtime variants: runs variant
- Release and runtime variants → Apache image definition: offers Apache
- Release and runtime variants → FPM image definition: offers FPM
- Release and runtime variants → Beta image variants: offers beta
- Release and runtime variants → CLI image variants: offers CLI
- Docker runtime → Apache startup: starts container
- Docker runtime → FPM startup: starts container
- Apache startup → Shared startup: delegates startup
- FPM startup → Shared startup: delegates startup
- Shared startup → Environment configuration: uses configuration
- Container environment → Environment configuration: provides settings
wp-config-docker.php - Environment configuration → WordPress site: configures site
- Environment configuration → WordPress database: sets connection settings
wp-config-docker.php