Docker container for Drupal 8.0.0
"Drupal is an open source content management platform powering millions of websites and applications. It’s built, used, and supported by an active and diverse community of people around the world."
To install docker in Ubuntu 15.04 use the commands:
$ sudo apt-get update
$ wget -qO- https://get.docker.com/ | sh
To install docker in other operating systems check docker online documentation
If you need a MySQL database you can link container :
$ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -e MYSQL_DATABASE=drupal \
-e MYSQL_USER=drupaluser -e MYSQL_PASSWORD=drupaldbpasswd -d mysql
in case you want to used pre-existing mysql container , you can add the new database by connecting to it with docker exec -it some-mysql bash and manual adding drupal database or you can link and used quantumobject/docker-mywebsql to create database drupal and user drupaluser plus need to grant all permision of this user to the drupal database.
Them link to Drupal container
$ docker run -d -p 80 --link some-mysql:db quantumobject/docker-drupal
where when been ask for database need to replace localhost for db.
Accessing the drupal applications:
After that check with your browser at addresses plus the port assigined by docker or you:
This will create initial configuration where:
database : drupal
database user : drupaluser
database password : drupaldbpasswd
and after done with the final install at the web interface, need to run this command for security ..:
$ docker exec -it container_id after_install
This will change some permission for some files internally of the container.
To access the container from the server that the container is running :
$ docker exec -it container_id /bin/bash
About Drupal: www.drupal.org
To help improve this container docker-drupal
Example of this docker-drupal
For additional info about us and our projects check our site www.quantumobject.com
Please try to give a substantial answer. If you wanted to comment on the question or answer, justuse the commenting tool. Please remember that you can alwaysrevise your answers - no need to answer the same question twice. Also, pleasedon't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/21/15, 1:16 PM|
|Seen: 969 times|
|Last updated: 7/1/17, 5:50 PM|