-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Adding a file or directory mount to a database, breaks defaul volume mount #5034
Comments
I took a quick look at the code and it seems to affect all database drivers.
if (count($persistent_storages) > 0) {
$docker_compose['services'][$container_name]['volumes'] = $persistent_storages;
}
if (count($persistent_file_volumes) > 0) {
$docker_compose['services'][$container_name]['volumes'] = $persistent_file_volumes->map(function ($item) {
return "$item->fs_path:$item->mount_path";
})->toArray();
} |
@peaklabs-dev @andrasbacsai - I took a look at the pull request and I couldn't see any changes to the files I expected. Could you point me to the commit with the fix? |
You cannot see the commit because it was only local, I committed it yesterday because of some testing and so on, but this is the commit: 5f357e3 |
thanks, I saw the release and the closing of this issue, at the same time so I went to check. I've got it working locally with an override, so I will wait for the next release before upgrading. The commit looks like it should fix it, presumably it will be rolled out to all databases? |
yes other DBs are in testing locally. |
Error Message and Logs
When adding file or directory mounts to a database service (tested with mariadb and mysql), the docker compose config is broken for the default volume mount (and additional ones).
This means that the db appears to lose data and is no longer persistent. Removing the mount restores the issue. It affects the config under
services.<id>.volumes
, not the rootvolumes
.Before adding mount:
After adding mount:
Steps to Reproduce
Example Repository URL
No response
Coolify Version
v4.0.0-beta.390
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
AlmaLinux 9.5
Additional Information
The file mounts previously didn't work and was fixed after #4668
That might be a good start to see where the cause of this issue is.
The text was updated successfully, but these errors were encountered: