PHPackages                             sterner-stuff/wordpress-sail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. sterner-stuff/wordpress-sail

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

sterner-stuff/wordpress-sail
============================

Docker files for running a basic WordPress application. Derived from Laravel Sail

1.14.6.2(3y ago)103583[1 issues](https://github.com/sterner-stuff/wordpress-sail/issues)[1 PRs](https://github.com/sterner-stuff/wordpress-sail/pulls)MITShellPHP ^7.3|^8.0

Since Dec 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sterner-stuff/wordpress-sail)[ Packagist](https://packagist.org/packages/sterner-stuff/wordpress-sail)[ RSS](/packages/sterner-stuff-wordpress-sail/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (3)Versions (82)Used By (0)

Introduction
------------

[](#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

[](#inspiration)

WordPress Sail is inspired by and derived from [Laravel Sail](https://github.com/laravel/sail), which is inspired by and derived from [Vessel](https://github.com/shipping-docker/vessel) by [Chris Fidao](https://github.com/fideloper). If you're looking for a thorough introduction to Docker, check out Chris' course: [Shipping Docker](https://serversforhackers.com/shipping-docker).

Installation
------------

[](#installation)

From a Bedrock project, require WordPress Sail:

```
composer require sterner-stuff/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:

```
require:
    - vendor/autoload.php

```

Scaffold your `docker-composer.yml` file:

```
wp sail:install [--with=]

```

By default, MySQL and Mailhog containers will be attached, but you can also use, for example, Redis:

```
wp sail:install --with=mysql,mailhog,redis

```

At this point, you may want to change the version of PHP used in the `docker-compose.yml` file.

```
version: '3'
services:
    wordpress.test:
        build:
            context: ./vendor/sterner-stuff/wordpress-sail/runtimes/8.1
