mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-11 19:26:56 +00:00
feat: implement dynamic volumes, custom env vars, and timezone detection
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user