This project provides a Docker-based setup for a WordPress development environment. It includes services for WordPress, MySQL, phpMyAdmin, and WP-CLI, with auto-configuration capabilities.
- Docker
- Docker Compose
- WordPress installation with auto-configuration
- MySQL database
- phpMyAdmin for database management
- WP-CLI for command-line management of WordPress
- Health check for service availability
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Environment Configuration:
Customize environment variables in the
wp-auto-config.yml
anddocker-compose.yml
files to suit your setup. -
Build and Start Services:
Run the following command to build and start the services:
make install
This will start the WordPress and MySQL services, perform health checks, and apply WordPress auto-configuration.
-
Access WordPress:
Open your web browser and navigate to
http://localhost
to access your WordPress site. -
Access phpMyAdmin:
Access phpMyAdmin at
http://localhost:<PHPMYADMIN_PORT>
for database management.
start
: Build and start the Docker containershealthcheck
: Run health checks for servicesdown
: Stop and remove containersinstall
: Start services and perform health checksconfigure
: Run WordPress auto-configurationautoinstall
: Start services and run auto-configurationclean
: Remove related files and foldersreset
: Clean the setup
This project is licensed under the MIT License. See the LICENSE file for details.