2025-07-18 12:14:38 +02:00
2025-07-18 12:00:37 +02:00
2025-07-18 12:01:50 +02:00
2025-07-18 12:14:38 +02:00

🐘 multi-php-fpm (Debian + Sury)

Docker Hub

Docker image to install and run multiple PHP versions from the Sury Debian repository 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

Pull the image:

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:latest

Description
A server with multiple PHPs dockerized.
Readme 289 KiB
Languages
Shell 84.5%
Dockerfile 15.5%