We provide images which extend the official PHP-Images. We add additional stuff like:
- almost any PHP module preinstalled
- configuration based on ENV variables
- run multiple services (like php-fpm and nginx) with supervisord
Save this as compose.yaml in your project (with the entry point in public/index.php) and run docker compose up -d:
services:
app:
image: webdevops/php-nginx:8.5
ports:
- "8080:80"
volumes:
- ./:/app
environment:
WEB_DOCUMENT_ROOT: /app/publicThe application is then available at http://localhost:8080. All images, settings and hooks are described in the documentation.
The images run on linux/amd64 and linux/arm64 and are rebuilt every night, so a tag such as 8.5 gets new images daily. To pin an image, see Platforms and updates.
Found a bug or have a question? Write an issue in our GitHub repository. Problems we already know about are listed in Known issues.
Or join our discord https://discord.gg/BpBZtXAgJz
How the files in this repository are generated, and how the images are built and tested, is described in CONTRIBUTING.md.
- Overview of all images
- Environment variables
- Customization: commands, hooks, services
- PHP images: Debian or Alpine, production, Xdebug with an IDE, mail
- Known issues
The following images which are currently supported are based on php:{VER}-fpm-bookworm.
webdevops/php:8.2webdevops/php:8.3webdevops/php:8.4webdevops/php:8.5webdevops/php-dev:8.2webdevops/php-dev:8.3webdevops/php-dev:8.4webdevops/php-dev:8.5webdevops/php-apache:8.2webdevops/php-apache:8.3webdevops/php-apache:8.4webdevops/php-apache:8.5webdevops/php-apache-dev:8.2webdevops/php-apache-dev:8.3webdevops/php-apache-dev:8.4webdevops/php-apache-dev:8.5webdevops/php-nginx:8.2webdevops/php-nginx:8.3webdevops/php-nginx:8.4webdevops/php-nginx:8.5webdevops/php-nginx-dev:8.2webdevops/php-nginx-dev:8.3webdevops/php-nginx-dev:8.4webdevops/php-nginx-dev:8.5
The following images which are currently supported are based on php:{VER}-fpm-alpine.
webdevops/php:8.2-alpinewebdevops/php:8.3-alpinewebdevops/php:8.4-alpinewebdevops/php:8.5-alpinewebdevops/php-dev:8.2-alpinewebdevops/php-dev:8.3-alpinewebdevops/php-dev:8.4-alpinewebdevops/php-dev:8.5-alpinewebdevops/php-apache:8.2-alpinewebdevops/php-apache:8.3-alpinewebdevops/php-apache:8.4-alpinewebdevops/php-apache:8.5-alpinewebdevops/php-apache-dev:8.2-alpinewebdevops/php-apache-dev:8.3-alpinewebdevops/php-apache-dev:8.4-alpinewebdevops/php-apache-dev:8.5-alpinewebdevops/php-nginx:8.2-alpinewebdevops/php-nginx:8.3-alpinewebdevops/php-nginx:8.4-alpinewebdevops/php-nginx:8.5-alpinewebdevops/php-nginx-dev:8.2-alpinewebdevops/php-nginx-dev:8.3-alpinewebdevops/php-nginx-dev:8.4-alpinewebdevops/php-nginx-dev:8.5-alpine