This repository provides a Docker Compose setup for WordPress, including WP-CLI, a MySQL database, and preloaded example data for testing and development.
- WordPress: Runs the latest version of WordPress.
- MySQL: Includes a MySQL database for WordPress.
- WP-CLI: Command-line interface for managing WordPress.
- Sample Data: Preloaded with the WordPress Theme Unit Test data.
- Docker needs to be installed and running
- Docker Compose needs to be installed
Admin Dashboard: localhost:8080/wp-admin
- Username:
admin
- Password:
admin
- example-data/theme-unittestdata.xml for Testing (derived from github.com/WordPress/theme-test-data)
- Drop your plugins in to plugins/ directory
- Run following code in terminal to start the docker containers
docker-compose up --build
docker-compose up --build -d
- Run following code in terminal to remove the docker containers
docker-compose down