通过Laravel文件存储在主机和容器中上传文件重复
我在Ubuntu服务器上的Docker容器中配置了Laravel应用程序。上传 laravel文件存储和链接php工匠存储:链接。在容器和主机中都可以使用上传到Laravel存储的文件。
这并不意味着上传文件的重复,例如 也存在于docker容器中,也存在于Ubuntu中的项目源代码中 服务器?
我知道存储上传文件的最佳方法是一些外部空间,例如AWS S3,Digitalocean Spaces ...
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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有重复。这些文件仅在主机计算机上存在一次,并以视图(读/写)安装在容器中
No there is no duplication. The files only exist once on the host machine and are mounted in the container as views (read/write)