Setup My Independent AI on a NAS¶
Running My Independent AI on a Synology NAS allows for 24/7 availability and centralized data storage.
1. Prerequisites¶
- Synology NAS with Docker (Container Manager) support.
- Cloud Sync installed from the Synology Package Center.
- Google Cloud Storage (optional, for syncing data to My Independent AI).
2. Setup with Docker Compose¶
The setup on a NAS is identical to the local setup using Docker Compose.
- SSH into your NAS.
- Navigate to your preferred directory (e.g.,
/volume1/docker/myindependent-ai). - Clone the repository and run:
3. Configuring the Importer¶
On a NAS, you typically use the Local Files importer to index your documents directly from the NAS volumes.
In apps/importers/config.yaml:
local_files:
enabled: true
paths:
- /volume1/documents # Mount this path in your docker-compose.yml
recursive: true
4. Optional: Data Sync (Synology Cloud Sync)¶
If you want to sync your data to a central location (like Google Cloud Storage) for access by other nodes:
- Install Cloud Sync from Package Center.
- Create sync task:
- Provider: Google Cloud Storage
- Connection: Upload via Service Account (use the JSON key generated from GCP Console).
- Configure sync:
- Bucket:
myindependent-ai-data - Remote path:
/nas-backup - Local path: Choose your documents folder.
- Direction: Upload local changes only.
- Bucket:
- Schedule: Enable real-time sync.
For more details on setting up the GCP side, see the Prerequisites.