I want to transfer my php site from a virtual machine to a docker container. My site saves all uploaded files to the uploads directory. Now I want to transfer all the files to the S3 storage and save further downloads also on Amazon S3. But I do not want to rewrite the loader class of php files. Is it possible to create a symlink folder or a virtual folder in Docker so that all records and reads on the uploads/** path are redirected to S3 Storage.
Docker supports the S3 storage driver , but I'm new to docker and donβt know how the folder should appear in the s3 repository in dockerfile. I did not find other examples.
Thank you for your help.
Update: See Taruns answer. If you also know that AWS Storage Gateway in a hosting environment is the only good solution, please support or share your thoughts.
source share