Sign inSign up

digiplant/docker-wordpress-development

By digiplant

Updated over 8 years ago

Wordpress with php 7 and xdebug. Good defaults for developers and the possibility of proxying.

Image
0

10K+

digiplant/docker-wordpress-development repository overview

Docker Wordpress Development

This image is a good starting point for developing wordpress themes and plugins. It shows php's errors so that you can find bugs and it has XDebug so that you can debug your code via webstorm / intellij. There are two versions, either you want to use composer as a base for your development, or you want a vanilla wordpress.

NOTE This is not intended to be used in production. It is intended to be used as a dev setup for those creating themes / plugins.

PHP 7

Both the vanilla and composer versions are running on php 7 PHP has show all errors enables for simpler debugging

XDebug

Xdebug 2.4 is installed and configured to listen to port 9999 and the IDEKey docker

Usage

Vanilla Wordpress

Uses wordpress own base image, but adds xdebug and debugging variables Check the Example directory for usage instructions

Composer Wordpress

Uses composer as a base for development, which installs wordpress via composer into /wp It has a couple of workarounds to get it working with nginx. Check the Composer Example directory for usage instructions

Backend Proxying

If you need to override a certain url and proxy to another backend you can include your own nginx conf which will be included along side the wordpress nginx config Check include file and mapping for how this is accomplished

Access MariaDB (MySql)

To access mysql you use a database program such as Navicat or Sequel Pro.

host: localhost
port: 3306
user: root
password: 42

you can now use Navicats data transfer functionality to copy a existing db into docker.

Development

to update to latest versions of wordpress and nginx run update script

./update.sh

Tag summary

Content type

Image

Digest

Size

229.6 MB

Last updated

over 8 years ago

docker pull digiplant/docker-wordpress-development