How Does the Path Work?
Internally, VARIOS AI uses the base directory/data/Data/KnowledgebaseDocuments inside the container. The share folder you specify in the UI is a relative subfolder within this base directory. The actual path is composed as follows:
/legal-texts as the share folder, the application looks inside the container at:
Hidden files (starting with
. or ~) and symlinks are automatically
skipped. The path .. (relative paths upward) is not allowed for security
reasons.Docker Compose Configuration
For the container to access your local files, a volume must be configured in thedocker-compose.yml. In the on-premise configuration, the default setup looks like this:
./KnowledgebaseDocuments on the host (relative to the docker-compose.yml directory) is mounted inside the container at /data/Data/KnowledgebaseDocuments.
Create the folder on the host
Create the folder that will be mounted as a volume and add subfolders as needed.
Configure the share folder in the UI
In the source configuration, enter the subfolder as the share folder, e.g.
/legal-texts. Click Test connection to verify that the folder is reachable.Mount Custom Folders as Volumes
You can also mount a different host path as a volume, e.g. a network share or any directory on the server:/srv/company-documents on the host is made available inside the container at /data/Data/KnowledgebaseDocuments/company-documents (read-only :ro). In the UI, enter /company-documents as the share folder.
Mount Network Shares (SMB / NFS)
Documents often need to be read from a network drive (e.g. Windows share or NAS). To do this, mount the network share on the host first, then bind it into the container via a volume.After mounting, always use Test connection in the UI to verify that the
share folder is reachable and readable inside the container.
Common Errors and Solutions
| Error Message | Cause | Solution |
|---|---|---|
| ”Share folder could not be found” | Folder does not exist in the container | Check volume: Is the host path correct? Was the folder created? Does the share folder name match? |
| ”Share folder could not be read” | Missing read permissions | Check file permissions on the host (chmod/chown). The container process typically runs as a specific user. |
Path with .. is rejected | Security check prevents relative paths | Use only simple subfolder names (e.g. /docs), no ../ constructs. |
| SMB share not mounted after restart | Entry in /etc/fstab is missing or incorrect | Check /etc/fstab and test with sudo mount -a. |
| NFS mount hangs during boot | Network is not ready when mount is attempted | Ensure the _netdev option is set in /etc/fstab so the mount only occurs after network initialization. |
