Skip to content

A configurable Docker Wordpress development environment generator. Can take any number of projects.

Notifications You must be signed in to change notification settings

aivec/wpdocker-devenv-factory

Repository files navigation

Wordpress Docker Container Factory

Summary

This repository is meant to be an all purpose Wordpress local container generator for setting up development environments. You can define any number of projects you want and launch or stop them all simultaneously or piecemeal. Configurable automated settings include:

  • local plugin/theme volume mounts
  • downloading and installing free themes/plugins via wp-cli
  • downloading and installing proprietary plugins/themes from an ftp server
  • using a MySQL dump file to setup a pre-configured instance (url search-replace included)
  • parsing active_plugins in the options table to install necessary plugins on a new instance.

This tool also automatically sets up XDebug for PHP, which can be listened to from your host machine in VS Code, for example.

Prerequisites

How to use

An example configuration file can be found in exampleconfigs/wp-instances.json. It's pretty self-explanatory. A file of the same name must exist in the root of this project. After configuring your instance(s), run the following interactive script to get started:

$ ./run.sh

That's it!

About

A configurable Docker Wordpress development environment generator. Can take any number of projects.

Resources

Stars

Watchers

Forks

Packages

No packages published