通过Laravel文件存储在主机和容器中上传文件重复

发布于 2025-02-09 11:06:01 字数 380 浏览 0 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

善良天后 2025-02-16 11:06:01

没有重复。这些文件仅在主机计算机上存在一次,并以视图(读/写)安装在容器中

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文