Skip to content

PHP Docker images for development purposes. With composer and most common libraries

Notifications You must be signed in to change notification settings

danybmx/docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Docker image for development

Build & Publish

Disclaimer: This image is intended for development purposes. Do not use in production and create your own based on the official but with only the libraries you need. Use the Dockerfiles as an example of how to install the libraries in different ways.

Based on official php images but including composer and following extensions:

  • gd
  • zip
  • exif
  • mysqli
  • pgsql
  • pdo
  • pdo_mysql
  • pdo_pgsql
  • soap
  • imagick
  • xmlrpc
  • bcmath
  • mbstring

Apache defaults

The default apache docroot is /var/www/html/public this makes that most of the frameworks works by default when copying them to /var/www/html.

If you are using tools like wordpress that doesn't include the public on their file structure just copy the content inside /var/www/html/public.

Apache config

The config file is placed on /etc/apache2/apache2.conf.

PHP default

It goes with all PHP distribution defaults except for memory which it defaults to 512MB.

PHP config file

The config file is placed on /usr/local/etc/php/conf.d/docker-php-memlimit.ini.

About

PHP Docker images for development purposes. With composer and most common libraries

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published