- WordPress (w/Apache)
- MySQL
- phpMyAdmin
Install Homebrew packages:
brew install colima
brew install kubectl
brew install docker
brew install docker-compose
-
Run Colima (containers runtime):
colima start --with-kubernetes
(to stop:colima stop
) -
Set environment:
chmod +x env.sh && source env.sh
-
Initialize the app:
docker-compose up
(to stop:docker-compose down
)
The Wordpress app will be available at http://localhost:8080
The phpMyAdmin dashboard will be available at http://localhost:9090
-
For both, local and remote instances of WordPress, install the plugin: https://wordpress.org/plugins/all-in-one-wp-migration/
-
For the local instance, open WordPress admin dashboard and find
All-In-One-WP-Migration/Export
tab -
Fill the field: "Find text Replace with another-text in the database, e.g. "Find localhost Replace with yoursite.com in the database or http:// to https://" (replacing
http://localhost
tohttps://yoursite.com
should be enough) -
Choose "Export to file" and wait for finishing - the backup file will be saved on your local machine
-
For the remote website instance, open WordPress admin dashboard and find
All-In-One-WP-Migration/Import
tab -
Click "Import from file", find save the backup file, confirm, and wait for completion
Remove all containers:
docker rm $(docker ps -aq) -f
Remove all images:
docker rmi $(docker images -aq) -f
Both actions at once:
docker rm $(docker ps -aq) -f && docker rmi $(docker images -aq) -f