Skip to content

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.

  1. SSH into your NAS.
  2. Navigate to your preferred directory (e.g., /volume1/docker/myindependent-ai).
  3. Clone the repository and run:
    docker-compose up -d
    

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:

  1. Install Cloud Sync from Package Center.
  2. Create sync task:
    • Provider: Google Cloud Storage
    • Connection: Upload via Service Account (use the JSON key generated from GCP Console).
  3. Configure sync:
    • Bucket: myindependent-ai-data
    • Remote path: /nas-backup
    • Local path: Choose your documents folder.
    • Direction: Upload local changes only.
  4. Schedule: Enable real-time sync.

For more details on setting up the GCP side, see the Prerequisites.