I currently have a codebase for Drupal using Drupal-VM vagrant box and VirtualBox. I would like to migrate to docker but I am unaware on how to integrate it with my existing code base.
Can anyone help me? I have followed instructions from Docker Hub - Drupal Install Steps and MySQL and Drupal Container to spin up mysql and Drupal images but how do I make it point to my pre-existing codebase?
Previous posts with more Details, Questions and Background:
after spinning up the docker container you can copy the existing code to the container using docker cp
docker cp docs
as far as the database you can just import it to the mysql container
to link the container to a volume use the -v
flag when starting the container
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.