Skip to content

Docker for WP projects, to rule them locally.

Notifications You must be signed in to change notification settings

lechdulian/docker-wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPCOM VIP Go development for Docker

This repo provides a Docker-based environment for WordPress development. It provides WordPress, MariaDB, and WP-CLI.

Set up

  1. Clone this or fork this repo and follow instructions. It is required to build an external network for proxy, so you can simultaneously run multiple projects on your local environment

  2. Copy sample.env to .env and provide your project title, domain name (same as in step 1), database port (unique for every instance of this repo), and GitHub repo, which contains your VIP Go ready project.

  3. Run ./bin/setup.sh.

  4. Run docker-compose up -d.

Install WordPress

docker-compose run --rm wp-cli install-wp

Log in to http://project.local/wp-admin/ with [email protected] / admin.

WP-CLI

You will probably want to create a shell alias for this:

docker-compose run --rm wp-cli wp [command]

Troubleshooting

If your stack is not responding, the most likely cause is that a container has stopped or failed to start. Check to see if all of the containers are "Up":

docker-compose ps

If not, inspect the logs for that container, e.g.:

docker-compose logs wordpress

Running ./bin/helpers/update_projects.sh again can also help resolve problems.

About

Docker for WP projects, to rule them locally.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages