This commit is contained in:
eroncero
2025-08-03 17:50:50 +02:00
parent cf8c4e9d09
commit 7b673ca598
3 changed files with 5 additions and 1 deletions

1
.env Normal file
View File

@@ -0,0 +1 @@
PHP_VERSIONS=7.2 7.1 # Set this without quotes!

View File

@@ -14,7 +14,7 @@ services:
image: eroncero/multi-php-fpm image: eroncero/multi-php-fpm
restart: unless-stopped restart: unless-stopped
environment: environment:
- PHP_VERSIONS=7.2 7.1 - PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env
volumes: volumes:
- ./multi-php-fpm/etc/php:/etc/php - ./multi-php-fpm/etc/php:/etc/php
- ./multi-php-fpm/run/php:/run/php - ./multi-php-fpm/run/php:/run/php

View File

@@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
set -e set -e
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
apt-get update apt-get update
for version in $PHP_VERSIONS; do for version in $PHP_VERSIONS; do