1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 06:44:04 +00:00

docker-compose: Properly pass through PHP_VERSION

Also revert composer.json docker-rebuild script to PHP 8.4, as
PHP 8.5 beta doesn't currently support phpredis, rendering the
Dockerfile unbuildable.
This commit is contained in:
Samuel Štancl 2025-09-01 21:09:47 +02:00
parent a0a9b85982
commit f87f353cf9
2 changed files with 2 additions and 1 deletions

View file

@ -65,7 +65,7 @@
"docker-restart": "docker compose down && docker compose up -d", "docker-restart": "docker compose down && docker compose up -d",
"docker-rebuild": [ "docker-rebuild": [
"Composer\\Config::disableProcessTimeout", "Composer\\Config::disableProcessTimeout",
"PHP_VERSION=8.5.0beta3 docker compose up -d --no-deps --build" "PHP_VERSION=8.4 docker compose up -d --no-deps --build"
], ],
"docker-rebuild-with-xdebug": [ "docker-rebuild-with-xdebug": [
"Composer\\Config::disableProcessTimeout", "Composer\\Config::disableProcessTimeout",

View file

@ -3,6 +3,7 @@ services:
build: build:
context: . context: .
args: args:
PHP_VERSION: ${PHP_VERSION:-8.4}
XDEBUG_ENABLED: ${XDEBUG_ENABLED:-false} XDEBUG_ENABLED: ${XDEBUG_ENABLED:-false}
depends_on: depends_on:
mysql: mysql: