Sign inSign up

jamesharv/drupal-apache

By jamesharv

•Updated almost 6 years ago

Simple Apache, intended to run Drupal with a separate PHP-FPM container linked by the hostname `php`

Image
0

787

jamesharv/drupal-apache repository overview

⁠Example usage
⁠Example 1
  • Apache listening on port 8080
  • PHP at external IP address 192.168.99.1 (eg. might not be a docker container)
  • Remote PHP service listening on port 9090
  • Remote PHP docroot at /path/to/php-docroot
docker run --rm \
  -e 'PHP_PORT=9090' \
  -e 'PHP_DOCROOT=/path/to/php-docroot' \
  -p '8080:80' \
  -v '/path/to/php-docroot:/var/www/html' \
  --add-host='php:192.168.99.1' \
  jamesharv/drupal-apache
⁠Example 2
  • Apache listening on port 80
  • PHP in linked container named php-fpm-container
  • Remote PHP service listening on port 9000 (default)
  • Remote PHP docroot at /var/www/html (default)
docker run --rm \
  -p '80:80' \
  -v '/path/to/docroot:/var/www/html' \
  --link='php:php-fpm-container' \
  jamesharv/drupal-apache
⁠Environment variables
VariableDefaultDescription
PHP_DOCROOT/var/www/htmlThe path to the PHP docroot in the linked php container.
PHP_PORT9000The port that the php container is listening on.

Tag summary

Content type

Image

Digest

Size

108.2 MB

Last updated

almost 6 years ago

docker pull jamesharv/drupal-apache