Required software:
Setup GIT repository for changes revision
-
For fresh new website, create a new folder and copy
docker-compose.yml
file there -
In the root directory, run:
docker compose up
(ordocker-compose up
)
The website will available at http://localhost (:80)
(Also, there is phpadmin available at http://localhost:8081)
- To stop application container, run:
docker compose down
For more commands, go to: https://docs.docker.com/engine/reference/commandline/docker/
-
For both, local and remote instance 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 backup file, confirm and wait for completion
https://github.com/mackankowski/wordpress-docker-template