Files
lemp-dockerized/README.md
2025-07-18 12:16:44 +02:00

24 lines
791 B
Markdown

# 🐘 multi-php-fpm (Debian + Sury)
[![Docker Hub](https://img.shields.io/docker/pulls/eroncero/multi-php-fpm?style=flat-square)](https://hub.docker.com/r/eroncero/multi-php-fpm)
Docker image to install and run multiple PHP versions from the [Sury Debian repository](https://packages.sury.org/php/) on Debian.
- 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
Run the image:
```bash
docker run -it --rm \
-e PHP_VERSIONS="7.4 8.1" \
-e DEF_PHP_INTERPRETER="8.1" \
eroncero/multi-php-fpm:latest