levijackson / docker-wordpress

Simple dockerized wordpress template to get up and running with Wordpress quickly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Wordpress

An easy way to set up a Wordpress install to do theme or plugin development.

Setup

  1. Start the containers docker-compose up -d
  2. Install Wordpress http://localhost:8000
  3. Log into PHPMyAdmin http://localhost:8080
  • use the credentials from .env (MYSQL_USER and MYSQL_PASSWORD)

If you'd like to customize the username/password for mysql, set the environment variables.

MYSQL_ROOT_PASSWORD=<value> MYSQL_DATABASE=<value> MYSQL_USER=<value> MYSQL_PASSWORD=<value> docker-compose up -d

Working with Wordpress

The wp-content/ directory gets mounted to the directory this runs in. It will allow you to copy plugins or themes into it from your file system easily.

Shutting down

docker-compose down will turn off the containers, but the volumes will persist. If you want to start fresh and delete the database, run docker-compose down --volumes and it will delete the volumes.

About

Simple dockerized wordpress template to get up and running with Wordpress quickly.

License:MIT License


Languages

Language:Shell 100.0%