- Alpine 3.23
- PHP 8.5
- Apache 2
- Symfony LTS ready
- Purpose: Sets the PHP memory limit
- Default:
512M(if not specified) - Usage: Controls how much memory PHP scripts can allocate
- Example:
PHP_MEMORY_LIMIT=1G
- Purpose: Sets the maximum file upload size
- Default:
128M(if not specified) - Usage: Controls the maximum size of uploaded files
- Example:
PHP_UPLOAD_MAX_FILESIZE=256M
- Purpose: Sets the maximum POST data size
- Default:
128M(if not specified) - Usage: Controls the maximum size of POST request data
- Example:
PHP_POST_MAX_SIZE=256M
- Purpose: Sets the maximum execution time
- Default:
30(if not specified) - Usage: Controls the maximum time in seconds a script is allowed to run before it is terminated by the parser
- Example:
PHP_MAX_EXECUTION_TIME=60
- Purpose: Controls whether composer environment is dumped on container startup
- Default:
0(if not specified) - Usage: When set to "1", runs
composer dump-env prodcommand - Example:
DUMP_COMPOSER_ENV=1
- Purpose: Controls whether Doctrine database migrations are automatically executed on container startup
- Default: Not run (if not specified or not set to "1")
- Usage: When set to "1", runs
doctrine:migrations:migrate --all-or-nothing -ncommand - Example:
RUN_DOCTRINE_MIGRATIONS=1 - Note: Migrations are executed as the
www-datauser and use the--all-or-nothingflag for transaction safety