Public Repository

Last pushed: a year ago
Short Description
An NGINX image compatible with a Drupal site.
Full Description

Drupal NGINX image

This image supports serving a single Drupal application. By default the app should be mounted to /var/www, however if your project has a different structure, you can simply set the WEB_ROOT environment variable to point the NGINX configuration to the correct path (ie. /var/www/html.)

Example docker-compose.yml:

nginx:
  image: groovycarrot/drupal-nginx
  environment:
    WEB_ROOT: /var/www # Set your web root path for NGINX.
  ports:
    - '8000:80' # Map port 80 from NGINX to the necessary port on the host.
  volumes_from:
    - data
  links:
    - php:fpm # Link your php-fpm service to 'fpm'.

php:
  image: groovycarrot/drupal-php-fpm:5.6
  volumes_from:
    - data

SSL support

This image supports HTTPS protocol forwarding from a downstream proxy, I would highly recommend using https://hub.docker.com/r/jwilder/nginx-proxy for a comprehensive solution.

Docker Pull Command
Owner
groovycarrot