feat: implement dynamic volumes, custom env vars, and timezone detection

This commit is contained in:
SaelixCode
2026-03-05 14:55:04 -05:00
parent 5c7e08a391
commit f2fbca17b7
3 changed files with 92 additions and 17 deletions
-6
View File
@@ -147,12 +147,6 @@ export class TemplateService {
continue;
}
if (hostPath.includes('portainer/Files') || hostPath.includes('/your/') || hostPath.includes('/path/to/')) {
const containerFolder = containerPath.split('/').filter(Boolean).pop() || 'data';
hostPath = `./${containerFolder}`;
} else if (hostPath.startsWith('/')) {
hostPath = hostPath.replace(/^\//, './');
}
yaml += ` - ${hostPath}:${containerPath}${options}\n`;
}