Local Development Environment
Add this to any project with
docker-compose.yaml to run the containers inside Vagrant. Useful for creating friendly development environments with beautiful hostnames (no port numbers) that don't require Docker on the host machine.
We suggest using Homebrew to install the dependencies:
brew cask install virtualbox vagrant
Add this package to your project using Composer:
composer require --dev wpsh/local
Vagrantfileto the root of your project with the following contents:
# Configure the hostname. Vagrant.configure(2) do |config| config.vm.hostname = 'wpsh-local' end load File.join( File.dirname(__FILE__), 'vendor/wpsh/local/Vagrantfile' )
vendor/wpsh/localis the relative path to this packge.
docker-compose.yamlin the root of your project to define the virtual environment.
examples/wordpressfor a sample WordPress development environment.
- Block Context WordPress plugin.
- Add support for installing via
- Automatically create the project
Vagrantfileon the first install.
Created by Kaspars Dambis.
See the LICENSE file for license rights and limitations (MIT).