Forked from https://hub.docker.com/r/tbfisher/drupal-nginx/
100K+
Nginx and PHP-fpm configured for Drupal, with
Tags:
See Drupal Development with Docker Compose | Chapter Three.
Extend this container as needed, with a Dockerfile
FROM tbfisher/drupal-nginx:php-5.6.x
# Configure files directory.
RUN mkdir -p /var/www_files/public && \
mkdir -p /var/www_files/private && \
chown -R www-data:www-data /var/www_files
Use docker compose:
version: '2'
services:
database:
image: mariadb:5.5
networks:
- backend
mail:
image: mailhog/mailhog
networks:
- backend
web:
build: ../my-drupal-nginx
ports:
- "22"
volumes:
- "./code:/var/www:rw"
- "files_public:/var/www_files/public:rw"
- "files_private:/var/www_files/private:rw"
- "ssh:/root/.ssh:rw"
networks:
- backend
networks:
backend:
driver: bridge
volumes:
database:
driver: local
files_public:
driver: local
files_private:
driver: local
ssh:
driver: local
Note PHP in this build is configured to send mail to a mailhog container, which captures any outgoing mail and exposes a UI on port 8025.
Content type
Image
Digest
Size
427.1 MB
Last updated
almost 7 years ago
docker pull kporras07/docker-drupal-nginx