Drupal 8.1.1 on Docker containers
954
Run Drupal 8.1.1 from Docker containers
make build-drupal
make
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.
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.
make down # stop containers
make in # enter the Drupal container
make restart # restart containers
make clean # remove containers and all local docker images
Feel free to fork and contribute to this code. :)
git checkout -b my-new-feature)git commit -am 'Added some feature')git push origin my-new-feature)Sources that guided me throughout the development of this project can be found in the wiki section of the project.
Licensed under the great GPLv3
Made with :heart: for drupal developers.
Content type
Image
Digest
Size
186.1 MB
Last updated
over 10 years ago
docker pull completit/dockerized-drupal