https://github.com/geerlingguy/drupal-vm-docker
Drupal VM Docker Composer Plugin
https://github.com/geerlingguy/drupal-vm-docker
composer docker drupal drupal-vm local local-environment plugin vm
Last synced: 5 days ago
JSON representation
Drupal VM Docker Composer Plugin
- Host: GitHub
- URL: https://github.com/geerlingguy/drupal-vm-docker
- Owner: geerlingguy
- License: mit
- Archived: true
- Created: 2018-04-08T17:04:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T03:02:50.000Z (almost 3 years ago)
- Last Synced: 2025-04-04T05:44:41.011Z (10 months ago)
- Topics: composer, docker, drupal, drupal-vm, local, local-environment, plugin, vm
- Language: PHP
- Homepage: https://packagist.org/packages/geerlingguy/drupal-vm-docker
- Size: 9.77 KB
- Stars: 20
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATED - Drupal VM Docker Composer Plugin
> **This project has been deprecated. It is no longer maintained.**
[](https://packagist.org/packages/geerlingguy/drupal-vm-docker) [](https://hub.docker.com/r/geerlingguy/drupal-vm/) [](https://microbadger.com/images/geerlingguy/drupal-vm "Get your own image badge on microbadger.com") [](https://riot.im/app/#/room/#drupal-vm:matrix.org)
**The quickest way to add a local development environment to your Drupal project!**
Get started:
composer require --dev geerlingguy/drupal-vm-docker
Run this command inside the directory of a Drupal project that is built using Composer, and it will create a Docker Compose file which will run a local instance of Drupal VM.
Make sure you have [Docker CE](https://store.docker.com/search?type=edition&offering=community) installed and running, then run `docker-compose up -d`. After a minute or two, you should be able to access your Drupal site at `http://localhost/`.
> To install Drupal, the default Drupal VM database name, username, and password are all `drupal`.
## Shutting down the environment
When you're finished developing, run the command:
docker-compose stop
And once you're ready to develop again, run:
docker-compose start
If you want to completely clear out the local environment (e.g. to start over or if you're finished with a project), run:
docker-compose down
## Updating the Docker Compose file
The Docker Compose file should be updated automatically any time you update to a newer version of this plugin. However, you can also manually force the file to be updated by running:
composer drupal-vm-docker-update
You should then tell Docker to restart anything that needs to be restarted with `docker-compose up -d`.
## License
This project is licensed under the MIT open source license.
## About the Author
[Jeff Geerling](https://www.jeffgeerling.com/) created the Drupal VM Docker Composer Plugin in 2018 for a more efficient Drupal site and core/contrib development workflow.