Fire up Wordpress and go!
This comes with a funtioning PHP MyAdmin service, as configured in the .env file
Included are these services:
- WordPress
- Mariadb
- wpcli
- PHPMyAdmin
Reach out via github @ https://github.com/barrynerd with bugs, PRs and feature ideas
If you use this and like it, stars are appreciated!
Requirements
- A running Docker service
- Linux to run the full setup, but you can do the WordPress configuration manually the usual way if you aren't on Linux
Tested on:
- Linux amd64
Not Tested on: (but you can help!)
- Linux arm64
- Mac
- Windows
...but this might work under WSL. I am unlikely to ever test that, but if you do, I welcome a PR with instructions and/or code changes
Instructions
- Clone this repo and cd into it
git clone https://github.com/barrynerd/docker-wordpress-mulitsite.git
- Copy .env.example to .env
cp .env.example .env
- Edit .env as needed for your situation
- Fire up the container
make up
- Initialize WordPress (optional)
make init
- Find WordPress at http://localhost :{your WP port number from .env file}
- Find PHPMyAdmin at http://localhost :{your PMA port number from .env file}
- Use wpcli like this from within the project directory
docker compose run --rm wpcli plugin list
Commands
up: Bring up the docker container
init: Initialize a clean container (just started with make up)
install: Do both make up and make init in one step
down: Bring down the docker container (but persist the database)
reset: USE WITH CAUTION Bring down the docker container (but destroy the database) docker compose down -v
logs: Show what is happening in your docker containers
shell: Login as root to the wordpress service
License
- MIT License (please credit BarryNerd [https://github.com/barrynerd] in your derivative versions)