Production-oriented WordPress container stack based on Alpine Linux.
- WordPress 6.x (downloaded by
wp-cli) - PHP-FPM 8.5 (ondemand process manager)
- Nginx
- Supervisor + cron
- MariaDB (via
docker-compose.yml)
- Docker Engine
- Docker Compose v2 (
docker compose ...)
Copy the sample environment and adjust credentials and hostnames:
cp .env.example .envUse this during development/debugging and access WordPress at http://127.0.0.1:8081.
docker compose up -d db wordpressUse this to run the full stack from this repository:
docker compose up -dNotes:
- This compose file expects an external Docker network named
traefik. - ACME in
docker-compose.ymlis currently configured for Let’s Encrypt staging. Switch to production CA settings before go-live.
/Users/carlos/work-dir/docker-production-wordpress/wp-config.php: environment-driven WordPress config/Users/carlos/work-dir/docker-production-wordpress/config/nginx.conf: main Nginx config/Users/carlos/work-dir/docker-production-wordpress/config/nginx_includes/include.conf: extra hardening and security rules/Users/carlos/work-dir/docker-production-wordpress/config/my.cnf: MariaDB tuning
Open an issue or pull request with reproduction steps and expected behavior.