Use bind mount instead of volume

see also c76b211ce0
This commit is contained in:
Girish Ramakrishnan
2022-06-06 15:59:50 -07:00
parent 7598cf2baf
commit 6c67f13d90

View File

@@ -192,15 +192,17 @@ async function getAddonMounts(app) {
for (const addon of Object.keys(addons)) {
switch (addon) {
case 'localstorage':
case 'localstorage': {
const storageDir = await apps.getStorageDir(app);
mounts.push({
Target: '/app/data',
Source: `${app.id}-localstorage`,
Type: 'volume',
Source: storageDir,
Type: 'bind',
ReadOnly: false
});
break;
}
case 'tls': {
const bundle = await reverseProxy.getCertificatePath(app.fqdn, app.domain);