More info at README.md

This commit is contained in:
eroncero
2025-07-18 12:08:14 +02:00
parent 670c40adb1
commit 4886c2c6e6

View File

@@ -1,20 +1,26 @@
# 🐘 multi-php-fpm (Debian + Sury) # 🐘 multi-php-fpm (Debian + Sury)
A flexible Docker image to run multiple PHP versions side-by-side using [Surys 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** - Default PHP installed at build: **8.2** (`BUILDTIME_PHP_VER_INST="8.2"`)
- Support for **multiple PHP versions** (5.68.3) via `PHP_VERSIONS` env - Supports installing multiple PHP versions at container start (`PHP_VERSIONS="7.1 7.4 8.1"`)
- Auto-starts all installed `phpX.Y-fpm` services - Automatically starts all installed PHP-FPM services
- Sets default CLI version via `update-alternatives` - Uses `update-alternatives` to set default CLI interpreter (`DEF_PHP_INTERPRETER="8.2"`)
- Based on Debian + Sury PPA
## 🛠️ Usage ---
## Usage
Pull the image:
```bash ```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 PHP_VERSIONS="7.4 8.1" \
-e DEF_PHP_INTERPRETER="8.1" \ -e DEF_PHP_INTERPRETER="8.1" \
eroncero/multi-php-fpm eroncero/multi-php-fpm:latest