简体   繁体   中英

uploaded file duplication in host and container by laravel file storage

I configured the laravel application in the docker container on the Ubuntu server. Files uploaded with laravel file storage and linked php artisan storage:link . Files uploaded to laravel storage are available in both container and host.

Doesn't that mean duplication of the uploaded files, for example it exists in docker container also in project source code in ubuntu server?

I know that best way of storing uploaded files is some external space like aws s3, digitalocean spaces...

No there is no duplication. The files only exist once on the host machine and are mounted in the container as views (read/write)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM