Sign inSign up

completit/dockerized-drupal

By completit

•Updated over 10 years ago

Drupal 8.1.1 on Docker containers

Artifact
Image
1

957

completit/dockerized-drupal repository overview

Build Status Join the chat at https://gitter.im/dminca/dockerized-drupal Join the chat on IRC #drupal-contribute Join the chat on Telegram Messenger

⁠Drupal dev env based on Docker

Run Drupal 8.1.1 from Docker containers

⁠Running the project

  • First, Drupal must be pulled from the web and configured
make build-drupal
  • Build the Docker image
make
  • Spin up the containers

During this stage, the PostgreSQL image will be pulled

make up

:boom: And that's it, you got yourself a fully-functional Drupal website on localhost without wasting time to install Apache + PHP + Drupal on your machine.

⁠During Drupal install

At the Set up database step you need to add the PostgreSQL container IPAddress.

docker inspect -f '{{.NetworkSettings.IPAddress}}' dockerizeddrupal_psql_1

where dockerizeddrupal_psql_1 is the container name

or MySQL container IP Address:

docker inspect -f '{{.NetworkSettings.IPAddress}}' dockerizeddrupal_mysql_1

in case you're using MySQL.

⁠Other commands

make down     # stop containers

make in       # enter the Drupal container

make restart  # restart containers

make clean    # remove containers and all local docker images

⁠Contributing

Feel free to fork and contribute to this code. :)

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
⁠Project references:

Sources that guided me throughout the development of this project can be found in the wiki section⁠ of the project.

⁠License

Licensed under the great GPLv3⁠

Made with :heart: for drupal⁠ developers.

Tag summary

Content type

Image

Digest

Size

186.1 MB

Last updated

over 10 years ago

docker pull completit/dockerized-drupal