diff --git a/README.md b/README.md index e437365..9422168 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,26 @@ # 🐘 multi-php-fpm (Debian + Sury) -A flexible Docker image to run multiple PHP versions side-by-side using [Sury’s PHP repository](https://packages.sury.org/php/) on Debian. By default, it installs PHP **8.2**, and supports **all PHP versions available in the Sury repo** (from 5.6 up to 8.3+). +[![Docker Hub](https://img.shields.io/docker/pulls/eroncero/multi-php-fpm?style=flat-square)](https://hub.docker.com/r/eroncero/multi-php-fpm) -## 🚀 Features +Docker image to install and run multiple PHP versions from the [Sury Debian repository](https://packages.sury.org/php/) on Debian. -- Default PHP version: **8.2** -- Support for **multiple PHP versions** (5.6–8.3) via `PHP_VERSIONS` env -- Auto-starts all installed `phpX.Y-fpm` services -- Sets default CLI version via `update-alternatives` -- Based on Debian + Sury PPA +- Default PHP installed at build: **8.2** (`BUILDTIME_PHP_VER_INST="8.2"`) +- Supports installing multiple PHP versions at container start (`PHP_VERSIONS="7.1 7.4 8.1"`) +- Automatically starts all installed PHP-FPM services +- Uses `update-alternatives` to set default CLI interpreter (`DEF_PHP_INTERPRETER="8.2"`) -## 🛠️ Usage +--- + +## Usage + +Pull the image: ```bash -docker run -it \ +docker pull eroncero/multi-php-fpm:latest + +Run the image: +docker run -it --rm \ -e PHP_VERSIONS="7.4 8.1" \ -e DEF_PHP_INTERPRETER="8.1" \ - eroncero/multi-php-fpm + eroncero/multi-php-fpm:latest