Public Repository

Last pushed: a year ago
Short Description
PHP and Apache base container
Full Description

PHP and Apache Base Container

Dockerized environment for PHP web development using 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, soap, opcache, zip, xls
  • 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.
  • 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
  • Git installed (required by Composer)
  • Composer installed globally at /usr/local/bin/composer
  • MySQL CLI Client installed
  • Vim installed

Usage

Standalone usage example with host's current working directory as document root:

$ docker run -p 80:80 -v $(pwd):/var/www/html ubuntux/php-apache-base

Credits

Webgriffe®

Docker Pull Command
Owner
ubuntux

Comments (0)