Skip to content

Initial files to develop and debug WordPress locally. Kudos to Wodby.

License

Notifications You must be signed in to change notification settings

nbdl/docker4wordpress

Repository files navigation

Docker-based WordPress Stack

Introduction

The idea here is to facilitate the development process with WordPress. Easy install and easy debugging, you get it all! This repo was made for W3E event.

How to run WordPress

Prerequisites: have Docker and Visual Studio Code installed

  1. Clone this repo
  2. Download the latest version of WordPress or the current beta (5.0-RC1) (Check the blog for more recent releases.)
  3. Unzip WordPress files in wordpress folder
  4. Add following line at the end of your /etc/hosts file: 127.0.0.1 wp.docker.localhost
  5. Run make up-dev and visit wp.docker.localhost:8000

Additionally you can visit wp.docker.localhost:8080 to see traefik's interface, which will give you all active frontends and backends docker images.

How to debug WordPress in Visual Studio Code (MacOS)

In order to debug, use Visual Studio Code and go in the debugging panel. If the launch.json file is found, you just have to start debugging and set a breakpoint. For other operating systems, please modify the various docker-compose files where needed (look at comments).

Hereafter comes Wodby's Readme for reference:

Build Status

Introduction

Docker4WordPress is a set of docker images optimized for WordPress. Use docker-compose.yml file from this repository to spin up a local environment for WordPress on Linux, macOS and Windows.

Stack

The WordPress stack consist of the following containers:

Container Versions Service name Image Default
Nginx 1.15, 1.14 nginx wodby/nginx
Apache 2.4 apache wodby/apache
WordPress 4 php wodby/wordpress
PHP 7.2, 7.1, 5.6 php wodby/wordpress-php
MariaDB 10.3, 10.2, 10.1 mariadb wodby/mariadb
PostgreSQL 11, 10, 9.x postgres wodby/postgres
Redis 5, 4 redis wodby/redis
Memcached 1 memcached wodby/memcached
Varnish 4.1 varnish wodby/varnish
Node.js 10, 8, 6 node wodby/node
Solr 7.x, 6.6, 5.5 solr wodby/solr
Elasticsearch 6.x, 5.6, 5.5, 5.4 elasticsearch wodby/elasticsearch
Kibana 6.x, 5.6, 5.5, 5.4 kibana wodby/kibana
AthenaPDF 2.10.0 athenapdf arachnysdocker/athenapdf-service
Mailhog latest mailhog mailhog/mailhog
OpenSMTPD 6.0 opensmtpd wodby/opensmtpd
Rsyslog latest rsyslog wodby/rsyslog
Blackfire latest blackfire blackfire/blackfire
Webgrind 1.5 webgrind wodby/webgrind
XHProf viewer latest xhprof wodby/xhprof
Adminer 4.6 pma wodby/adminer
phpMyAdmin latest pma phpmyadmin/phpmyadmin
Portainer latest portainer portainer/portainer
Traefik latest traefik _/traefik

Supported WordPress versions: 4

Documentation

Full documentation is available at https://wodby.com/docs/stacks/wordpress/local.

Images' tags

Images tags format is [VERSION]-[STABILITY_TAG] where:

[VERSION] is the version of an application (without patch version) running in a container, e.g. wodby/nginx:1.15-x.x.x where Nginx version is 1.15 and x.x.x is a stability tag. For some images we include both major and minor version like PHP 7.2, for others we include only major like Redis 5.

[STABILITY_TAG] is the version of an image that corresponds to a git tag of the image repository, e.g. wodby/mariadb:10.2-3.3.8 has MariaDB 10.2 and stability tag 3.3.8. New stability tags include patch updates for applications and image's fixes/improvements (new env vars, orchestration actions fixes, etc). Stability tag changes described in the corresponding a git tag description. Stability tags follow semantic versioning.

We highly encourage to use images only with stability tags.

Maintenance

We regularly update images used in this stack and release them together, see releases page for full changelog and update instructions. Most of routine updates for images and this project performed by the bot via scripts located at wodby/images.

Beyond local environment

Docker4WordPress is a project designed to help you spin up local environment with docker-compose. If you want to deploy a consistent stack with orchestrations to your own server, check out WordPress stack on Wodby Wodby.

Other Docker4x projects

License

This project is licensed under the MIT open source license.

About

Initial files to develop and debug WordPress locally. Kudos to Wodby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published