This is a simple Docker Compose example for setting up local WordPress with PMA and MariaDB.
- WordPress 6.4.3
- PMA (latest)
- MariaDB 10.6.4
- Clone the repository:
git clone https://github.com/recoskyler/wordpress-docker-compose && cd wordpress-docker-compose - Create a
.envfile:cp sample.env .env - Create a directory named
ai1wm-backupsif it does not exist - Move your All-in-one WP Migration
.wpressbackup file(s) to the newly createdai1wm-backupsdirectory - Run the containers:
docker compose up -d - Open the admin panel(http://localhost:8080) and install the All-in-one WP Migration plugin
- Follow the steps here to allow backup restore
WP will be available at http://localhost:8080
PMA will be available at http://localhost:8081
Used Gist by @erikyuzwa. Thank you!
By recoskyler - 2024