Git Product home page Git Product logo

docker-drupal8-lemp-apcu-ssl's Introduction

docker-d8-lemp-ssl

Docker build for creating a local Drupal 8 website running on a LEMP stack with SSL from Lets Encrypt. Includes a PHPMyAdmin container so you have a GUI for the database. Extends the official Drupal image on Docker Hub by installing APCu caching. Includes MailHog, a testing SMTP server, so you can test site messaging locally.

Install Drupal using Composer

Adding COMPOSER_MEMORY_LIMIT=-1 to the beginning of the command helps to avoid composer memory limit issues. Change the version number to the version of Drupal you need to use.

COMPOSER_MEMORY_LIMIT=-1 composer create-project drupal/recommended-project:8.9.6 drupal

Start up the Containers

docker-compose up -d

Access Site

https://localhost

(or at the custom URL that you create using the instructions in the comments near the https-portal container ๐Ÿ˜‰)

Access PHPMyAdmin

http://localhost:8081

Preset PHPMyAdmin creds

User: drupal

Pass: drupal

Access the testing mail server inbox

http://localhost:8025

Edit the nginx.conf file to whitelist your IP and block others

The IP address you are looking to whitelist comes from the https-portal container.

Find the container's ID by running: docker ps to see the list of running containers.

Then run this, replacing CONTAINER_ID with the ID: docker inspect CONTAINER_ID | grep "IPAddress"

Uncomment lines 131-134 in nginx.conf and replace XXX.XX.X.X with the container IP address.

Run docker-compose up to commit the changes.

docker-drupal8-lemp-apcu-ssl's People

Contributors

ashstevens-dev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.