Download the PHP package sterner-stuff/wordpress-sail without Composer
On this page you can find all versions of the php package sterner-stuff/wordpress-sail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sterner-stuff/wordpress-sail
More information about sterner-stuff/wordpress-sail
Files in sterner-stuff/wordpress-sail
Package wordpress-sail
Short Description Docker files for running a basic WordPress application. Derived from Laravel Sail
License MIT
Informations about the package wordpress-sail
Introduction
Sail provides a Docker powered local development experience for Laravel that is compatible with macOS, Windows (WSL2), and Linux.
This library has taken that work and tailored it for a WordPress environment.
Other than Docker, no software or libraries are required to be installed on your local computer before using Sail. Sail's simple CLI means you can start building your Laravel application without any previous Docker experience.
Inspiration
WordPress Sail is inspired by and derived from Laravel Sail, which is inspired by and derived from Vessel by Chris Fidao. If you're looking for a thorough introduction to Docker, check out Chris' course: Shipping Docker.
Installation
From a Bedrock project, require WordPress Sail:
To ensure the local autoloader is run as part of the WP-CLI lifecycle, ensure it's included in your wp-cli.yml
file:
Scaffold your docker-composer.yml
file:
By default, MySQL and Mailhog containers will be attached, but you can also use, for example, Redis:
At this point, you may want to change the version of PHP used in the docker-compose.yml
file.
Finally, build your containers:
Install without PHP/Composer on your host machine
If you're trying to use purely Docker to get going, that's an option. We'll assume you already started your Bedrock project and updated wp-cli.yml
. Then you can run these two commands:
When using the wordpress:cli-phpx.x image, you should use the same version of PHP that you're using for your application (7.4, 8.0, or 8.1).
Usage
WordPress Sail tries to match Laravel Sail as closely as possible. WP-CLI is also now available in your container, so you don't need to use the bundled one.
You might do some of the following (assuming you've aliased sail
to vendor/bin/sail
):
If you want to customize the Dockerfile used:
After customizing your Sail installation, change the image name for the application container in your application's docker-compose.yml file so it doesn't conflict with other projects using the default Dockerfile. Then run sail build --no-cache
Starting on a project with Sail already installed
When using the laravelsail/phpXX-composer image, you should use the same version of PHP that you're using for your application (74, 80, or 81).
Official Documentation
WordPress Sail should be considered unstable and does not currently have docs. Documentation for Sail can be found on the Laravel website.
Contributing
Thank you for considering contributing to Sail! You can read the contribution guide here.
License
Laravel Sail is open-sourced software licensed under the MIT license.
All versions of wordpress-sail with dependencies
illuminate/contracts Version ^8.0|^9.0
illuminate/support Version ^8.0|^9.0
wp-cli/wp-cli Version ^2.6