readd: local source mounts.

This commit is contained in:
Darshan
2026-03-05 13:21:49 +05:30
parent e0d2db0c24
commit 569505c54d
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -67,6 +67,9 @@ $hostPath = rtrim($this->getParam('hostPath', ''), '/');
- traefik.http.routers.appwrite_api_https.service=appwrite_api
- traefik.http.routers.appwrite_api_https.tls=true
volumes:
<?php if ($version === 'local' && !empty($hostPath)): ?>
- <?php echo $hostPath; ?>:/usr/src/code:rw
<?php endif; ?>
- appwrite-uploads:/storage/uploads:rw
- appwrite-imports:/storage/imports:rw
- appwrite-cache:/storage/cache:rw
+3 -2
View File
@@ -496,7 +496,7 @@ class Install extends Action
$database = $input['_APP_DB_ADAPTER'] ?? 'mongodb';
$version = $isLocalInstall
? 'latest'
? 'local'
: (defined('APP_VERSION_STABLE') ? APP_VERSION_STABLE : 'latest');
$assistantKey = (string) ($input['_APP_ASSISTANT_OPENAI_API_KEY'] ?? '');
@@ -509,7 +509,8 @@ class Install extends Action
->setParam('organization', $organization)
->setParam('image', $image)
->setParam('database', $database)
->setParam('enableAssistant', $enableAssistant);
->setParam('enableAssistant', $enableAssistant)
->setParam('hostPath', $this->hostPath);
$templateForEnv->setParam('vars', $input);