PHPackages                             tobinski/bedrock-docker-deployer - 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. tobinski/bedrock-docker-deployer

ActiveLibrary

tobinski/bedrock-docker-deployer
================================

Deployer recipes for Roots Bedrock with containerized DB

0.4(6y ago)11.2kMITPHP

Since Mar 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tobinski/bedrock-docker-deployer)[ Packagist](https://packagist.org/packages/tobinski/bedrock-docker-deployer)[ RSS](/packages/tobinski-bedrock-docker-deployer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

bedrock-docker-deployer
=======================

[](#bedrock-docker-deployer)

[Deployer](https://deployer.org/) recipes for containerized [Roots Bedrock](https://roots.io/bedrock/) databases, also supports [Roots Sage](https://roots.io/sage/)..

Docker is a very powerful environment and helps you to deploy images to your server. If you develop on docker but need to deploy to a classic server, you need to dump the DB from the container and send it to the server.

This recipe helps you to use [florianmoser/bedrock-deployer](https://github.com/FlorianMoser/bedrock-deployer) with a containerized setup.

Maybe you are even trying to deploy Bedrock to a shared hosting. Depending on your hosting environment, this *may* be possible. Check out [florianmoser/plesk-deployer](https://github.com/FlorianMoser/plesk-deployer).

**A word of caution:** Make sure you have a backup of your local as well as your remote files, before experimenting with deployment recipes. Files might easily get overwritten when you provide wrong paths! You are solely responsible by using the recipes provided here.

Who needs this
--------------

[](#who-needs-this)

PHP developers who would like to deploy their containerized Bedrock applications to a non-containerized server using Deployer.

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

[](#installation)

Use Composer:

```
$ composer require tobinski/bedrock-docker-deployer

```

Recipes
=======

[](#recipes)

This package offers one recipes to help you deploy your database to a server. You need additional recipe from florianmoser/bedrock-deployer

Bedrock DB
----------

[](#bedrock-db)

Provides tasks to export the database from the server and import it to your development container and vice versa.

Requirements:

- docker **running** on your local machine
- WP CLI running on your container as well as on your remote machine

Load into your deploy.php file with:

```
require 'vendor/tobinski/bedrock-docker-deployer/recipe/bedrock_dopcker_db.php';
```

Requires these Deployer environment variables to be set:

- local\_root: Absolute path to website root directory on local host machine
- wp\_container: The name of the Wordpress container Example:

```
set( 'local_root', dirname( __FILE__ ) );
set( 'wp_container', "wordpress );
```

### Task pull:db

[](#task-pulldb)

Exports database on server and imports it into your local container, while removing previous data. Creates a backup of the local database in the local\_root directory, before importing the new data.

After the import, the WordPress URLs are converted from server URL to local URL, so your WordPress installation will continue to work right after the import.

Database credentials and URLs are read from remote and local .env file. So make sure, those files are up to date.

### Task push:db

[](#task-pushdb)

Exports database from local container and imports it into your remote server, while removing previous data. Creates a backup of the remote database on the server in the current release directory, before importing the new data.

After the import, the WordPress URLs are converted from local URL to remote URL, so your WordPress installation will continue to work right after the import.

Database credentials and URLs are read from remote and local .env file. So make sure, those files are up to date.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~240 days

Total

4

Last Release

2264d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58dc15f4c8243d07f1ffc60a76c2fcaf6fdb751b5d6a288c21c3791955964599?d=identicon)[tobinski](/maintainers/tobinski)

---

Top Contributors

[![tobinski](https://avatars.githubusercontent.com/u/501804?v=4)](https://github.com/tobinski "tobinski (4 commits)")

### Embed Badge

![Health badge](/badges/tobinski-bedrock-docker-deployer/health.svg)

```
[![Health](https://phpackages.com/badges/tobinski-bedrock-docker-deployer/health.svg)](https://phpackages.com/packages/tobinski-bedrock-docker-deployer)
```

###  Alternatives

[lorisleiva/laravel-deployer

Laravel Deployer is a lightweight wrapper of Deployer giving Artisan the power of zero-downtime deployment.

1.7k1.3M4](/packages/lorisleiva-laravel-deployer)[sourcebroker/deployer-extended-database

Deployer tasks to manage database synchronization between application instances.

41302.6k7](/packages/sourcebroker-deployer-extended-database)[sourcebroker/deployer-extended

Library with some additional tasks for deployer (deployer.org).

25275.4k9](/packages/sourcebroker-deployer-extended)[hypernode/deploy-configuration

Hypernode deploy configuration files

12111.5k](/packages/hypernode-deploy-configuration)[ngmy/webloyer

Webloyer is a Web UI for managing Deployer deployments

2181.1k](/packages/ngmy-webloyer)[n98/n98-deployer

netz98 deployer tasks, recipes, configuration

2543.6k1](/packages/n98-n98-deployer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
