Simple Apache, intended to run Drupal with a separate PHP-FPM container linked by the hostname `php`
787
192.168.99.1 (eg. might not be a docker container)/path/to/php-docrootdocker 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
php-fpm-container/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
| Variable | Default | Description |
|---|---|---|
| PHP_DOCROOT | /var/www/html | The path to the PHP docroot in the linked php container. |
| PHP_PORT | 9000 | The port that the php container is listening on. |
Content type
Image
Digest
Size
108.2 MB
Last updated
almost 6 years ago
docker pull jamesharv/drupal-apache