Docker volumes to be used in the docker-compose.yml must be created:
docker volume create --name=omicsdatascience_site_wordpress
docker volume create --name=omicsdatascience_site_db
IMPORTANT: read the docker-compose_local.yml file and comment/uncomment the corresponding lines to use the correct image.
- Clone the repository
- Run Docker compose with the
docker-compose_local.ymlfiledocker-compose -f docker-compose_local.yml up -d - Once you have all the changes you need, make a Duplicator dump.
The following steps are for recovering a backup of a site on any server.
- Create a package using the Duplicator plugin. (You can use this backup functional from production)
- Download the
installer.phpfiles and the.zipfile of the Duplicator package inside thewebsitefolder. - Start an instance with our image
docker compose up -d - Install package with Duplicator by accessing the URL where the Docker container was launched with the suffix
/installer.php. E.g.:127.0.0.1:8080/installer.phpand following the instructions. - Use Better Search and Replace to change everything that is
http://[IP:VPS port]tohttps://omicsdatascience.org - Change the
WP_DEBUGvariable tofalseto put the site into production.