wpsh / local
A Docker Compose development environment for any project.
Installs: 148 032
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 6
Language:Shell
pkg:composer/wpsh/local
This package is auto-updated.
Last update: 2025-10-06 03:06:34 UTC
README
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.
Requirements
We suggest using Homebrew to install the dependencies:
brew cask install virtualbox vagrant
Install
-
Add this package to your project using Composer:
composer require --dev wpsh/local -
Add
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' )where
vendor/wpsh/localis the relative path to this packge. -
Create
docker-compose.yamlin the root of your project to define the virtual environment.
Examples
- See
examples/wordpressfor a sample WordPress development environment. - Block Context WordPress plugin.
Development
Travis CI lints all shell scripts in scripts/vagrant using shellcheck and Vagrantfile (and other Ruby files) using rubocop.
To Do
- Add support for installing via
npm. - Automatically create the project
Vagrantfileon the first install.
Credits
Created by Kaspars Dambis.
License
See the LICENSE file for license rights and limitations (MIT).