brew install --cask virtualbox
brew install --cask vagrant
Add the Vagrantfile
alongside your project(s)
The vagrant-bootstrap.sh
is optional (only needed if you want to add custom config)
# launch machine
vagrant up --provision
# connect to machine
vagrant ssh
# launch docker
docker-compose up -d (or your customized command)
# access your project through localhost