Docker-based PHP stack

May 18, 2026 · View on GitHub

Build Status

Introduction

Docker4PHP is a set of docker images optimized for PHP. Use compose.yml file from the latest stable release to spin up local environment on Linux, Mac OS X and Windows.

Stack

The PHP stack consists of the following containers:

ContainerVersionsImageARM64 supportEnabled by default
Nginx1.31, 1.30wodby/nginx
Apache2.4wodby/apache
PHP8.5, 8.4, 8.3, 8.2wodby/php
Crondwodby/php
MariaDB11.8, 11.4, 10.11, 10.6wodby/mariadb
PostgreSQL18, 17, 16, 15, 14wodby/postgres
Valkey9.0, 8.1, 8.0, 7wodby/valkey
Redis8.6, 8.4, 8.2, 7.4wodby/redis
Memcached1wodby/memcached
Node.js24, 22, 20wodby/node
Vinyl (Varnish)8.0, 6.0wodby/vinyl
Solr9wodby/solr
OpenSearch2opensearchproject/opensearch
OpenSearch Dashboards2opensearchproject/opensearch-dashboards
OpenSMTPD7wodby/opensmtpd
Mailpitlatestaxllent/mailpit
Gotenberglatestgotenberg/gotenberg
Rsysloglatestwodby/rsyslog
Webgrind1wodby/webgrind
Xhprof viewerlatestwodby/xhprof
Adminer5wodby/adminer
phpMyAdminlatestphpmyadmin/phpmyadmin
Traefik3_/traefik

Documentation

Full documentation is available at https://wodby.com/docs/stacks/php/local

Images' tags

Images tags format is [VERSION]-[STABILITY_TAG] where:

[VERSION] is the version of an application (without patch version) running in a container, e.g. wodby/nginx:1.31-x.x.x where Nginx version is 1.31 and x.x.x is a stability tag. For some images we include both major and minor version like PHP 7.2, for others we include only major like Valkey 7.

[STABILITY_TAG] is the version of an image that corresponds to a git tag of the image repository, e.g. wodby/mariadb:10.2-3.3.8 has MariaDB 10.2 and stability tag 3.3.8. New stability tags include patch updates for applications and image's fixes/improvements (new env vars, orchestration actions fixes, etc). Stability tag changes described in the corresponding a git tag description. Stability tags follow semantic versioning.

We highly encourage to use images only with stability tags.

Maintenance

We regularly update images used in this stack and release them together, see releases page for full changelog and update instructions. Most of routine updates for images and this project performed by the bot via scripts located at wodby/images.

Other Docker4x projects

License

This project is licensed under the MIT open source license.