Docs: Extend the documentation on required volumes / migration steps
Hello.
I think that documentation is missing a hint how to migrate any instance of prestashop that was created manually without docker into a docker-compose stack.
I know how to migrate a database, I know I can reuse your prestashop/prestashop image, but I have no idea how to migrate the local assets like product images or any other physical files that were uploaded by the user.
Hello,
It's quite simple. Using docker, you can create/override volumes.
For example, you can unzip all local files/assets into you system, and configure docker to load your files instead the originals.
Using docker-compose file, you juste need to do something like that:
volumes:
- /home/docker/yoursite/volumesTest/var/www/html/:/var/www/html/
The first part is related to your local host machine. /home/docker/yoursite/volumesTest/var/www/html/ is a path where I can unzip a prestashop backup.
The second part is related to the container. /var/www/html/ is the path of prestashop files inside the container.
Docker is going to push all my local files from /home/docker/yoursite/volumesTest/var/www/html/into the container repository /var/www/html/`.
Et voilà !
Sorry for my English !
Best Regards, Manu