Skip to content

dontdrinkandroot/php.docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php.docker

Build Image

  • Alpine 3.23
  • PHP 8.5
  • Composer, PHPStan, Node.js (pnpm, yarn)

Symfony Images

  • FrankenPHP 1.12.1 (Caddy-based)
  • PHP 8.5

Variants

  • dev: Development image with Xdebug
  • prod: Production image with supervisor support

ENV Variables

PHP_MEMORY_LIMIT

  • 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

PHP_UPLOAD_MAX_FILESIZE

  • 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

PHP_POST_MAX_SIZE

  • Purpose: Sets the maximum POST data size
  • Default: 146M (if not specified)
  • Usage: Controls the maximum size of POST request data
  • Example: PHP_POST_MAX_SIZE=256M

DUMP_COMPOSER_ENV

  • Purpose: Controls whether composer environment is dumped on container startup
  • Default: 0 for dev, 1 for prod
  • Usage: When set to "1", runs composer dump-env prod command
  • Example: DUMP_COMPOSER_ENV=1

RUN_DOCTRINE_MIGRATIONS

  • Purpose: Controls whether Doctrine database migrations are automatically executed on container startup
  • Default: 0 for dev, 1 for prod
  • Usage: When set to "1", runs doctrine:migrations:migrate --all-or-nothing -n command
  • Example: RUN_DOCTRINE_MIGRATIONS=1
  • Note: Migrations are executed as the www-data user and use the --all-or-nothing flag for transaction safety

TODO: /var/lib/php-zts/session for www-data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors