This repository provides a Docker Compose setup for running multiple versions of WordPress with different PHP versions (5.6, 7.0, 7.4, 8.2) along with a phpMyAdmin instance to manage the databases.
Before you begin, ensure you have the following installed:
-
Clone this repository to your local machine:
git clone https://github.com/sajdoko/local-wp-docker.git cd local-wp-docker
-
Start the Docker containers:
docker-compose up -d
-
Access each WordPress instances:
- PHP 5.6: https://localhost:8051
- PHP 7.0: https://localhost:8052
- PHP 7.4: https://localhost:8053
- PHP 8.2: https://localhost:8054
- Access phpMyAdmin:
- Customize the
docker-compose.yml
file to adjust ports, environment variables, and any other settings to match your specific requirements.