The container's PHP is configured with --with-config-file-scan-dir, so PHP will load all files in /etc/php.d/*.ini as configuration files. Pull this repo, place and commit your php.ini files and push.
j-apache
|---/Dockerfile
|---/php/conf.d <-- Put any php config files here
|---/README.md
Config files placed in php/conf.d directory in this repository will overwrite the settings in php.ini.
memory_limit = -1
error_reporting = E_ALL | E_STRICT
Putting config stuff here allows you to have custom settings while keeping updates simpler: if you modify php.ini itself then you either have to retain the old php.ini or overwrite it when you update PHP. If you keep your custom settings in, eg. conf.d/local.ini then you can update PHP easily while retaining any environment-specific settings.
The files are loaded in numeric order, so 000-php.ini is loaded before 001-php.ini.
Committing files to the repositry will generate a new build on docker hub automatically.
APACHE_DOC_ROOT environment variable. Default document root is /var/www/htmldate.timezone through PHP_TIMEZONE environment variable. Default timezone is Europe/Rome/usr/local/bin/composerXDEBUG_ENABLE environment variable which has to be set to 1HOST_IP environment variable.SSMTP_MAILHUB, SSMTP_AUTH_USER and SSMTP_AUTH_PASS environment variablesYou can build the image locally from the directory containing the Dockerfile
docker build -t joybird-apache
Standalone usage example with host's current working directory as document root:
$ docker run -p 80:80 -v $(pwd):/var/www/html gregcoleman/j-apache
Props to webgriffe
Content type
Image
Digest
Size
219 MB
Last updated
over 9 years ago
docker pull gregcoleman/j-apache