Production-ready PHP Docker images optimized for Laravel and WordPress.
5M+
Production-ready PHP Docker images built on official PHP. Optimized for Laravel, WordPress, and modern PHP applications.
serversideup/php takes the official PHP Docker images and adds everything you need for real-world production use:
![]() | ![]() | ![]() |
|---|---|---|
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
The quick start guide walks you through your first PHP app with Docker:
phpinfo() in your browserFollow the quick start guide →
A Laravel app with NGINX and PHP 8.5, configured with environment variables:
services:
php:
image: serversideup/php:8.5-fpm-nginx
ports:
- "80:8080"
environment:
PHP_MEMORY_LIMIT: "512M"
# Run migrations, storage:link, and optimize on start
AUTORUN_ENABLED: "true"
volumes:
- .:/var/www/html
Choose the variation that fits your needs. All images follow the pattern:
serversideup/php:{{version}}-{{variation-name}}
| Variation | Best For | Example |
|---|---|---|
| cli | CLI scripts, cron jobs, queues | serversideup/php:8.5-cli |
| fpm | Custom web server setup | serversideup/php:8.5-fpm |
| fpm-apache | Apache-based deployments | serversideup/php:8.5-fpm-apache |
| fpm-nginx | Stable and performant web server | serversideup/php:8.5-fpm-nginx |
| frankenphp | Modern, high-performance apps with worker mode | serversideup/php:8.5-frankenphp |
Note
All images are available on [**Docker Hub**](https://hub.docker.com/r/serversideup/php/) and [**GitHub Packages**](https://github.com/serversideup/docker-php/pkgs/container/php).
We support PHP 8.2 through 8.5 with both Debian and Alpine base images. PHP 8.1 is end of life but still built while its base operating systems receive security updates. See our security policy for the rule. PHP 8.6 release candidates are available for testing as 8.6-rc tags, such as serversideup/php:8.6-rc-fpm-nginx. Every rebuild uses the newest release candidate on php.net.
Learn More About Choosing an Image →
| ⚙️ Variation | 🚀 Version |
|---|---|
| cli | Debian Based Alpine Based |
| fpm | Debian Based Alpine Based |
| fpm-apache | Debian Based |
| fpm-nginx | Debian Based Alpine Based |
| frankenphp | Debian Based Alpine Based |
| unit (removed) | ⚠️ NGINX no longer maintains NGINX Unit, so this variation is no longer built. Learn more → |
Need help integrating Docker with your PHP application?
Bug fixes, features, and docs improvements are all welcome. Read the contribution guide and code of conduct before opening a pull request.
Need help getting started? Join our Discord community and we'll help you out!
All of our software is free and open to the world. None of this can be brought to you without the financial backing of our sponsors.
Deimos Industries · CarePilot (Formerly DocuCare)
These companies give us free access to the tools and infrastructure we use to build, test, and ship our open source projects. Their support helps our entire community.
We're Dan and Jay - a two-person team with a passion for open source products. We created Server Side Up to help share what we learn.
Get two senior Laravel experts who deliver quality code with predictable monthly pricing. Dan and Jay have 30+ years of combined experience building scalable Laravel applications.
If you appreciate this project, be sure to check out our other projects.
Content type
Image
Digest
sha256:d8ed1efa1…
Size
188.4 MB
Last updated
6 minutes ago
docker pull serversideup/phpPulls:
125,472
Last week