Required software:
0: Run Docker, e.g. by using Colima: Install & run Docker on macOS (gist)
-
Pull the repository
-
In the root directory, run:
docker-compose up
The website will be available at http://localhost:8080
(Also, there is phpadmin available at http://localhost:8081)
- To stop the application container, run:
docker-compose down
For more commands, go to: https://docs.docker.com/engine/reference/commandline/docker/
-
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
Run the following command to identify the container which uses the port and remove it:
docker container ls
docker rm -f <container-name>
or remove all containers at once (repeat running until all are killed):
docker rm $(docker ps -a -q) -f