All Projects → nezhar → Wordpress Docker Compose

nezhar / Wordpress Docker Compose

Licence: mit
Easy Wordpress development with Docker and Docker Compose

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Wordpress Docker Compose

Blog Post Workflow
Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed
Stars: ✭ 910 (-17.8%)
Mutual labels:  hacktoberfest, wordpress, workflow
Wordpressify
🎈 A build system designed to automate your WordPress development workflow.
Stars: ✭ 1,374 (+24.12%)
Mutual labels:  wordpress, workflow, docker-compose
Wordpress Gulp Starter Kit
[NOT MAINTAINED] A starter kit for developing WordPress themes with Gulp.
Stars: ✭ 674 (-39.11%)
Mutual labels:  wordpress, workflow
Laravel Boilerplate
Laravel Boilerplate / Starter Kit with Gentelella Admin Theme
Stars: ✭ 704 (-36.4%)
Mutual labels:  hacktoberfest, docker-compose
Galaxy
Data intensive science for everyone.
Stars: ✭ 812 (-26.65%)
Mutual labels:  hacktoberfest, workflow
Beehive
A flexible event/agent & automation system with lots of bees 🐝
Stars: ✭ 5,348 (+383.11%)
Mutual labels:  hacktoberfest, workflow
Docker4wordpress
Docker-based WordPress stack
Stars: ✭ 607 (-45.17%)
Mutual labels:  wordpress, docker-compose
Easy Digital Downloads
Sell digital downloads through WordPress
Stars: ✭ 757 (-31.62%)
Mutual labels:  hacktoberfest, wordpress
Wp Cli
⚙️ WP-CLI framework
Stars: ✭ 4,474 (+304.16%)
Mutual labels:  hacktoberfest, wordpress
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-97.65%)
Mutual labels:  wordpress, docker-compose
Woocommerce
An open source eCommerce plugin for WordPress.
Stars: ✭ 7,473 (+575.07%)
Mutual labels:  hacktoberfest, wordpress
Wordpress Nginx Docker
Wordpress (php7.3-fpm) using Nginx and MariaDB - deployed with docker-compose - Let's Encrypt enabled
Stars: ✭ 498 (-55.01%)
Mutual labels:  wordpress, docker-compose
Pdm
A modern Python package manager with PEP 582 support.
Stars: ✭ 492 (-55.56%)
Mutual labels:  hacktoberfest, workflow
Filterlists
🛡 The independent, comprehensive directory of filter and host lists for advertisements, trackers, malware, and annoyances.
Stars: ✭ 653 (-41.01%)
Mutual labels:  hacktoberfest, docker-compose
Coblocks
A suite of professional page building content blocks for the WordPress Gutenberg block editor.
Stars: ✭ 486 (-56.1%)
Mutual labels:  hacktoberfest, wordpress
Camunda Modeler
An integrated modeling solution for BPMN and DMN based on bpmn.io.
Stars: ✭ 718 (-35.14%)
Mutual labels:  hacktoberfest, workflow
Wp Skateboard
My local WordPress development built with Docker and Docker Compose.
Stars: ✭ 46 (-95.84%)
Mutual labels:  wordpress, docker-compose
Cookiecutter Django Vue
Cookiecutter Django Vue is a template for Django-Vue projects.
Stars: ✭ 462 (-58.27%)
Mutual labels:  hacktoberfest, docker-compose
Wordpress Nginx Docker Compose
Run WordPress with nginx using Docker Compose.
Stars: ✭ 460 (-58.45%)
Mutual labels:  wordpress, docker-compose
Ddev
DDEV-Local: a local PHP development environment system
Stars: ✭ 915 (-17.34%)
Mutual labels:  wordpress, docker-compose

WPDC - WordPress Docker Compose

Easy WordPress development with Docker and Docker Compose.

With this project you can quickly run the following:

Contents:

Requirements

Make sure you have the latest versions of Docker and Docker Compose installed on your machine.

Clone this repository or copy the files from this repository into a new folder. In the docker-compose.yml file you may change the IP address (in case you run multiple containers) or the database from MySQL to MariaDB.

Make sure to add your user to the docker group when using Linux.

Configuration

Edit the .env file to change the default IP address, MySQL root password and WordPress database name.

Installation

Open a terminal and cd to the folder in which docker-compose.yml is saved and run:

docker-compose up

This creates two new folders next to your docker-compose.yml file.

  • wp-data – used to store and restore database dumps
  • wp-app – the location of your WordPress application

The containers are now built and running. You should be able to access the WordPress installation with the configured IP in the browser address. By default it is http://127.0.0.1.

For convenience you may add a new entry into your hosts file.

Usage

Starting containers

You can start the containers with the up command in daemon mode (by adding -d as an argument) or by using the start command:

docker-compose start

Stopping containers

docker-compose stop

Removing containers

To stop and remove all the containers use thedown command:

docker-compose down

Use -v if you need to remove the database volume which is used to persist the database:

docker-compose down -v

Project from existing source

Copy the docker-compose.yml file into a new directory. In the directory you create two folders:

  • wp-data – here you add the database dump
  • wp-app – here you copy your existing WordPress code

You can now use the up command:

docker-compose up

This will create the containers and populate the database with the given dump. You may set your host entry and change it in the database, or you simply overwrite it in wp-config.php by adding:

define('WP_HOME','http://wp-app.local');
define('WP_SITEURL','http://wp-app.local');

Creating database dumps

./export.sh

Developing a Theme

Configure the volume to load the theme in the container in the docker-compose.yml:

volumes:
  - ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name

Developing a Plugin

Configure the volume to load the plugin in the container in the docker-compose.yml:

volumes:
  - ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name

WP CLI

The docker compose configuration also provides a service for using the WordPress CLI.

Sample command to install WordPress:

docker-compose run --rm wpcli core install --url=http://localhost --title=test --admin_user=admin [email protected]

Or to list installed plugins:

docker-compose run --rm wpcli plugin list

For an easier usage you may consider adding an alias for the CLI:

alias wp="docker-compose run --rm wpcli"

This way you can use the CLI command above as follows:

wp plugin list

phpMyAdmin

You can also visit http://127.0.0.1:8080 to access phpMyAdmin after starting the containers.

The default username is root, and the password is the same as supplied in the .env file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].