21 lines
690 B
Markdown
21 lines
690 B
Markdown
# 🐘 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+).
|
||
|
||
## 🚀 Features
|
||
|
||
- 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
|
||
|
||
## 🛠️ Usage
|
||
|
||
```bash
|
||
docker run -it \
|
||
-e PHP_VERSIONS="7.4 8.1" \
|
||
-e DEF_PHP_INTERPRETER="8.1" \
|
||
eroncero/multi-php-fpm
|
||
|