From ca362982f72e793d0f30a60f29aae98f3d71a0f1 Mon Sep 17 00:00:00 2001 From: Rodrigo Espinoza Date: Fri, 18 Feb 2022 16:56:29 -0600 Subject: [PATCH 1/2] Mapping the PHP_MEMORY_LIMIT and PHP_MAX_EXECUTION_TIME env varibles to the env variables in the .env file to allow to the users to change this values depending on thier requirements --- docker/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 332ee13..209a506 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -23,6 +23,8 @@ services: environment: - PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE} - PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE} + - PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT} + - PHP_MAX_EXECUTION_TIME=${PHP_MAX_EXECUTION_TIME} - XDEBUG_ENABLE=${XDEBUG_ENABLE} expose: - "9000" From 752bfe811e1747bd97abe7ca56b11ab81d04d96a Mon Sep 17 00:00:00 2001 From: Rodrigo Espinoza Date: Fri, 18 Feb 2022 17:14:03 -0600 Subject: [PATCH 2/2] Adding new variables to .env.example file --- env.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/env.example b/env.example index b063e72..8b2dafe 100644 --- a/env.example +++ b/env.example @@ -17,6 +17,8 @@ NGINX_TAG=alpine PHP_TAG=7.4 PHP_POST_MAX_SIZE=100M PHP_UPLOAD_MAX_FILESIZE=100M +PHP_MEMORY_LIMIT=256M +PHP_MAX_EXECUTION_TIME=120 XDEBUG_ENABLE=disable # DB Container.