https://github.com/webgriffe/docker-php-apache-base
Base Docker Container for PHP web development. Apache webserver integrated.
https://github.com/webgriffe/docker-php-apache-base
Last synced: about 1 year ago
JSON representation
Base Docker Container for PHP web development. Apache webserver integrated.
- Host: GitHub
- URL: https://github.com/webgriffe/docker-php-apache-base
- Owner: webgriffe
- Created: 2015-12-29T18:17:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T11:09:15.000Z (over 3 years ago)
- Last Synced: 2025-03-24T04:43:26.358Z (over 1 year ago)
- Language: Dockerfile
- Size: 41 KB
- Stars: 38
- Watchers: 6
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Base PHP with Apache Docker Container
=====================================
[](http://microbadger.com/images/webgriffe/php-apache-base "Get your own version badge on microbadger.com")
[](http://microbadger.com/images/webgriffe/php-apache-base "Get your own version badge on microbadger.com")
Dockerized environment for PHP web development and Apache web server.
Features
--------
* Ability to set Apache document root through `APACHE_DOC_ROOT` environment variable. Default document root is `/var/www/html`
* Enabled Apache modules: rewrite
* Ability to set PHP `date.timezone` through `PHP_TIMEZONE` environment variable. Default timezone is `Europe/Rome`
* Enabled PHP extensions: gd, mcrypt, intl, mysql, mysqli, pdo_mysql, mbstring, soap, opcache, zip, xls
* Composer installed globally at `/usr/local/bin/composer`
* Xdebug PHP extension installed but not enabled
* Ability to enable xdebug PHP extension through `XDEBUG_ENABLE` environment variable which has to be set to `1`
* Ability to set xdebug.remote_enable setting through `HOST_IP` environment variable.
* GIT installed (required by Composer)
* sSMTP installed (as Mail Transfer Agent for PHP mail function)
* Ability to set sSMTP mailhub, AuthUser and AuthPass through `SSMTP_MAILHUB`, `SSMTP_AUTH_USER` and `SSMTP_AUTH_PASS` environment variables
* MySQL CLI Client installed
Usage
-----
Standalone usage example with host's current working directory as document root:
$ docker run -p 80:80 -v $(pwd):/var/www/html webgriffe/php-apache-base
Credits
-------
[Webgriffe®](http://www.webgriffe.com/)