docker icon indicating copy to clipboard operation
docker copied to clipboard

Docs: Extend the documentation on required volumes / migration steps

Open Hell4Ge opened this issue 6 years ago • 1 comments

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.

Hell4Ge avatar Dec 23 '19 23:12 Hell4Ge

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

Numalama avatar Jan 10 '20 09:01 Numalama