D
Dokploy15mo ago
ShaonPro

File Mount Not Working

Want to update thse but not works.
No description
19 Replies
VNSkeleton
VNSkeleton15mo ago
I see the same error, the file is created successfully but the content is not passed to the file. The file is empty
No description
No description
VNSkeleton
VNSkeleton15mo ago
@Siumauricio Can you check it out when you have some free time?. Thankful...
Siumauricio
Siumauricio15mo ago
I tested and is working fine this
No description
Siumauricio
Siumauricio15mo ago
No description
Siumauricio
Siumauricio15mo ago
the file is in the container.... I remember tried something similar to postgres and it was working, so probably you are mapping in a wrong way
VNSkeleton
VNSkeleton15mo ago
Sorry I just did a quick test... I can see the "Content" data when using the command from your image... However when accessing the path from "/var/lib/docker/overlay2/edcce412967c36efc9c08d3737385549979f03a7fbef0e88b09b5d1f7421ef50/volume/..." the file is completely empty. My MariaDB has not changed, the configuration is not optimized added...
No description
VNSkeleton
VNSkeleton15mo ago
This is weird
Siumauricio
Siumauricio15mo ago
hmm can you try create a new database but not deploy, create the file mount and then deploy and check if the content is there...
VNSkeleton
VNSkeleton15mo ago
Yes, I just tested with the procedure you suggested. I created both PostgreSQL and MariaDB. The files are successfully created at /var/lib/docker/overlay2/volume_id/..../merged (or diff)/etc/mysql/conf.d/name_file.cnf However there is no data, the file is empty
ShaonPro
ShaonProOP15mo ago
@Siumauricio i am still not getting the acceswer for this - can you help me?
Siumauricio
Siumauricio15mo ago
Overview
Learn how to use Docker Compose with Dokploy
Aurel
Aurel15mo ago
Can you give more details on why this is needed to use the ../files folder instead of anything else on the host machine ?
Siumauricio
Siumauricio15mo ago
No description
Aurel
Aurel15mo ago
Personally I don’t think cleaning volumes automatically if they are not mapped to ../files on the host is a good thing, I think the default docker behavior is the right one with probably an option to click when deploying for cleaning them
ShaonPro
ShaonProOP15mo ago
not working - as file mount i have tried and did not work with my compose build so i did cat -> php.ini and added my codes maybe need to fix that? @Siumauricio
Siumauricio
Siumauricio15mo ago
This was previously discussed here https://github.com/Dokploy/docs/issues/15 Please create a minimal reproduce to test that
Aurel
Aurel15mo ago
I haven’t access to this repository :/
Aurel
Aurel15mo ago
Thanks for this ! I understand now ! 🙂

Did you find this page helpful?