π³ Production-ready Docker images for PHP. Optimized for Laravel, WordPress, and more!
See the codeProduction-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:
![]() | ![]() | ![]() |
|---|---|---|
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
Want to see how easy it is? Our installation guide walks you through creating your first PHP app with Docker:
phpinfo() in your browserπ Follow the quick start guide
Here's what a complete Laravel setup with NGINX + PHP 8.5 looks like:
services:
php:
image: serversideup/php:8.5-fpm-nginx
ports:
- "80:8080"
environment:
# Customize PHP with environment variables
PHP_OPCACHE_ENABLE: "1"
PHP_MEMORY_LIMIT: "512M"
# Laravel automations (migrations, storage link, etc.)
AUTORUN_ENABLED: "true"
volumes:
- .:/var/www/html
That's it. No complex configs. Just environment variables.
Ready to try it? Get started with our tutorial β
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 and GitHub Packages.
We support PHP 7.4 through 8.5 with both Debian and Alpine base images.
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 (deprecated) | β οΈ NGINX is no longer maintaining NGINX Unit. We stopped providing updates for this image. Learn more β |
Need help integrating Docker with your PHP application?
As an open-source project, we strive for transparency and collaboration in our development process. We greatly appreciate any contributions members of our community can provide. Whether you're fixing bugs, proposing features, improving documentation, or spreading awareness - your involvement strengthens the project. Please review our contribution guidelines and code of conduct to understand how we work together respectfully.
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.
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.
482 followers Β· starred Jun 2026
231 followers Β· starred Oct 2023
7 followers Β· starred Mar 2023
1,099 followers Β· starred Jun 2026
π³ Production-ready Docker images for PHP. Optimized for Laravel, WordPress, and more!
See the codeProduction-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:
![]() | ![]() | ![]() |
|---|---|---|
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
Want to see how easy it is? Our installation guide walks you through creating your first PHP app with Docker:
phpinfo() in your browserπ Follow the quick start guide
Here's what a complete Laravel setup with NGINX + PHP 8.5 looks like:
services:
php:
image: serversideup/php:8.5-fpm-nginx
ports:
- "80:8080"
environment:
# Customize PHP with environment variables
PHP_OPCACHE_ENABLE: "1"
PHP_MEMORY_LIMIT: "512M"
# Laravel automations (migrations, storage link, etc.)
AUTORUN_ENABLED: "true"
volumes:
- .:/var/www/html
That's it. No complex configs. Just environment variables.
Ready to try it? Get started with our tutorial β
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 and GitHub Packages.
We support PHP 7.4 through 8.5 with both Debian and Alpine base images.
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 (deprecated) | β οΈ NGINX is no longer maintaining NGINX Unit. We stopped providing updates for this image. Learn more β |
Need help integrating Docker with your PHP application?
As an open-source project, we strive for transparency and collaboration in our development process. We greatly appreciate any contributions members of our community can provide. Whether you're fixing bugs, proposing features, improving documentation, or spreading awareness - your involvement strengthens the project. Please review our contribution guidelines and code of conduct to understand how we work together respectfully.
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.
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.
482 followers Β· starred Jun 2026
231 followers Β· starred Oct 2023
7 followers Β· starred Mar 2023
1,099 followers Β· starred Jun 2026