Skip to main content

Install Gety Server on a NAS or in Docker

Gety Server runs Gety in the background, without the desktop app. Install it on your NAS with Docker, and it indexes the files stored there. Then search them from a browser on any device on your network, or let AI tools such as Claude and Cursor search them. Indexing and search run entirely on your NAS, and your files are never uploaded to Gety's servers.

There are two ways to install it:

MethodWhen to use
In your NAS's web interfaceYour NAS's Docker app can create a project from a Compose file. The steps use fnOS as the example.
Over SSHYou can sign in to the NAS or a Linux machine with SSH, or you want to run Gety as your own NAS account.

To install Gety Server without Docker, on Linux, macOS, or Windows, see Install Gety Server from the command line.

Before you start​

  • An Intel or AMD (x86_64) NAS. There's no Gety image for ARM processors.
  • Docker 20.10.10 or later. Most NAS systems offer it as an app, usually called Docker on fnOS and UGREEN, Container Manager on Synology, and Container Station on QNAP.
  • A processor with AES-NI. Intel and AMD processors from the last ten years have it, including low-power ones such as the Celeron J4125 and N5105.
  • Your NAS's LAN IP address, such as 192.168.1.20. You can find it in your router's device list. Give the NAS a fixed IP address in your router, so that it doesn't change later.
  • Internet access. The first start downloads the models for text recognition and semantic search, about 186 MB.

Fill in the configuration​

Both ways use this configuration. Copy it and change the lines the comments point to: the web password, your NAS's IP address, and the folders to search.

services:
gety:
image: getyai/gety:latest
container_name: gety
restart: unless-stopped
stop_grace_period: 30s
ports:
- "31225:31225" # The Web UI
- "31226:31226" # The API and MCP, for AI tools
environment:
GETY_WEB_LISTEN: "0.0.0.0:31225"
# The web password: 20 or more random letters and digits
GETY_WEB_PASSWORD: "change-this-password"
# Your NAS's LAN IP address, without a port
GETY_PUBLIC_HOST: "192.168.1.20"
# In mainland China, remove the # at the start of the next line,
# so that Gety downloads its models from mirrors there
# LANG: "zh_CN.UTF-8"
volumes:
- gety-config:/config
# A folder to search: its path on the NAS, then its path in Gety.
# :ro means Gety can only read the folder, never change it
- /vol1/1000/Documents:/data/Documents:ro
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"

volumes:
gety-config:
  • The web password protects every file Gety can read, so use 20 or more random letters and digits. Don't use $ in it: Docker reads it as the start of a variable. Anyone who can open the container's settings in your NAS's Docker app can read the password.
  • Folders to search: add one line under volumes for each folder, such as - /vol1/1000/Projects:/data/Projects:ro. Add only folders that hold your documents, not a whole disk or the system folders. On fnOS, a folder in 我的文件 (My files) on storage space 1 is at /vol1/1000/<folder>. On Synology and UGREEN, folder paths usually start with /volume1/, and on QNAP with /share/.
  • Who can read the folders: Gety runs as user 1000 in the container, so it can read the folders that user 1000 can read on the NAS. On fnOS, that's the account whose files are in /vol1/1000, the first account created on the NAS. To run Gety as another account, install over SSH.
  • gety-config is a Docker volume that keeps Gety's settings, index, models, and sign-in. Upgrading Gety keeps it.

To change other options, see Environment variables in Docker.

Install in your NAS's web interface​

These steps use fnOS. The Docker apps on Synology, QNAP, and UGREEN can usually also create a project from a Compose file: create a project named gety, paste the configuration, and start it.

  1. Open Docker, click Compose on the left, then click 新增项目 (Add project).
  2. Enter gety as 项目名称 (Project name).
  3. Under 路径 (Path), click the folder icon and choose an empty folder for the project. To create one, click 新建文件夹 (New folder) in the dialog, for example gety in 我的文件.
  4. Under 来源 (Source), choose 创建docker-compose.yml (Create docker-compose.yml), and paste the configuration.
  5. Select 创建项目后立即启动 (Start the project after creating it), and click 确认 (Confirm).

The fnOS Create project dialog, with gety as the project name and the configuration pasted under Create docker-compose.yml

fnOS downloads Gety's image, which takes a few minutes, and starts it. The gety project then shows as 正在运行 (Running) under Compose.

The gety project running on the fnOS Compose page

Next, check that Gety has started.

Install over SSH​

Use these steps on any NAS or Linux machine that runs Docker, if you can sign in to it with SSH.

  1. Turn on SSH in your NAS's settings, if it's off. On your computer, open a terminal (PowerShell on Windows) and sign in to the NAS:

    ssh your-user-name@192.168.1.20
  2. Create a folder for Gety's configuration, and go to it. Use a folder on a data volume, for example:

    mkdir -p /vol1/1000/gety && cd /vol1/1000/gety
  3. Save the configuration in that folder as compose.yaml, for example with nano compose.yaml or vi compose.yaml.

  4. Start Gety:

    sudo docker compose up -d

    If your account can run Docker without sudo, leave sudo out of this and the other commands on this page. On an older Docker, the command is docker-compose instead of docker compose.

  5. Check that Gety has started:

    sudo docker logs gety

    It's ready when the log shows getyd ... is ready, as in Check that Gety has started.

Over SSH, you can also use the gety command in the container, for example sudo docker exec gety gety status. See the CLI guide for its commands.

Run Gety as your own account​

Gety runs as user 1000 in the container. If it can't read your folders, for example on Synology, where accounts usually start at 1026, run it as your own NAS account instead:

  1. In the folder from step 2, run id. The output looks like uid=1026(alice) gid=100(users) .... Note the numbers after uid= and gid=.

  2. Create the folder for Gety's data with your account, so that it belongs to you:

    mkdir config
  3. In compose.yaml, add a user line with your numbers under container_name, change gety-config:/config to ./config:/config, and delete the last two lines, volumes: and gety-config::

    container_name: gety
    user: "1026:100"
    # ...
    volumes:
    - ./config:/config
  4. Run sudo docker compose up -d again.

Gety now keeps its data in the config folder. If it already had data in the gety-config volume, it starts over: log in and add your folders again.

Check that Gety has started​

Open the gety container's log in your NAS's Docker app. On fnOS, click 容器 (Containers), click gety, then click ⋯ and choose 运行日志 (Run log). Over SSH, run sudo docker logs gety.

Gety has started when the log shows getyd ... is ready, followed by the addresses it serves:

The run log of the gety container on fnOS, with getyd is ready and the Web UI address

getyd 0.8.0 is ready
...
API endpoint: 0.0.0.0:31226 (all interfaces); clients use http://192.168.1.20:31226
Web UI: http://192.168.1.20:31225 (password required)

On any device, open the address after Web UI in a browser, such as http://192.168.1.20:31225. Enter gety as the user name and the web password from the configuration.

On its first start, Gety also downloads its models in the background. Keyword search works right away; semantic search and text recognition in images start when the download finishes.

Next steps​

In the Web UI, add the folders to search, log in to your Gety account, and connect your AI tools. See Use Gety Server in the Web UI and AI tools.

When you add a folder, use its path in Gety, the part after the colon in the configuration, such as /data/Documents.

Upgrade Gety​

To upgrade, download the new image, then create Gety's container again from it. Upgrading keeps your settings, index, and sign-in in gety-config, and Gety doesn't download its models again.

  • Over SSH: in the folder with compose.yaml, run:

    sudo docker compose pull && sudo docker compose up -d
  • In your NAS's Docker app: download the getyai/gety image again, with the tag in the configuration's image line (latest by default), then rebuild the gety project, so that Gety runs from the new image. Restarting the container alone keeps running the old image. On fnOS, search for getyai/gety under 镜像仓库 (Registry) and click the download icon, then click 构建 (Build) for the gety project under Compose.

To stay on one version, or to switch to beta, write a tag from the table below in the configuration's image line, such as getyai/gety:0.8.0 or getyai/gety:beta, then rebuild the project: over SSH, run sudo docker compose up -d; on fnOS, change the configuration as in Change the web password, then click 构建 (Build).

The image has these tags:

TagFollows
latest, <version> (such as 0.8.0), <major>.<minor> (such as 0.8)Stable releases
beta, <version>-betaBeta releases

Change the web password​

Change GETY_WEB_PASSWORD in the configuration, then start Gety again with it. If you forget the password, set a new one the same way.

  • Over SSH: edit compose.yaml, then run sudo docker compose up -d.
  • On fnOS: a running project's configuration is read-only. Stop the gety project under Compose, edit its configuration under ⋯ → 详情 (Details) → YAML配置 (YAML configuration), then click 构建 (Build), so that the project is created again with the new configuration.

Environment variables in Docker​

Set Gety's environment variables under environment in the configuration, then start Gety again with it. In Docker:

  • The image sets GETY_API_LISTEN to 0.0.0.0:31226, so that the published port reaches the API, and GETY_HOST, so that docker exec gety gety finds Gety. Leave them as they are.
  • Don't set GETY_APP_DATA_DIR. Gety keeps its data in /config.
  • GETY_WEB_LISTEN and GETY_API_LISTEN are addresses inside the container. Devices on your network reach Gety through the ports you publish.
  • To keep the web password out of the configuration, put it in a file that the container's user can read, mount the file, and set GETY_WEB_PASSWORD_FILE to its path in the container instead of GETY_WEB_PASSWORD.

Ports​

PortUsed for
31225The Web UI, for browsers
31226The API and MCP, for AI tools and scripts
  • If a port is taken by another program on the NAS, change only the number left of the colon, for example "31235:31225", and open http://<NAS IP>:31235. The log still shows port 31225; use the port you set. If you change 31226, also update the port in your AI tools' configuration.
  • To allow access only from the NAS itself, publish the port as "127.0.0.1:31225:31225". Other devices then can't connect.
  • The Web UI and the API use plain HTTP. Publish them only on a network you trust; see LAN access and security.

Remove Gety​

Over SSH, in the folder with compose.yaml, run sudo docker compose down. Your settings and index stay in the gety-config volume, so that installing again uses them. To delete them too, run sudo docker compose down -v.

In your NAS's Docker app, delete the gety project.

Troubleshooting​

Downloading the image says no matching manifest​

Your NAS has an ARM processor. Gety's image runs only on Intel and AMD (x86_64) processors.

Downloading the image is slow or fails in mainland China​

Docker Hub is often slow or unreachable from mainland China. Add a Docker Hub mirror in your NAS's Docker settings, and keep the image name getyai/gety. On fnOS, click 镜像仓库 (Registry), then 设置 (Settings) → 加速源设置 (Mirror settings).

The container keeps restarting​

Open the container's log and read the last lines:

  • Permission denied with a path under /config: Gety can't write to its data folder. If you mounted a folder at /config, make sure it belongs to the user Gety runs as: create it with your own account, and set user to that account's numbers, as in Run Gety as your own account.
  • Exit code 2, or a message about GETY_WEB_PASSWORD: the web password is missing, or the configuration is malformed. Check the GETY_WEB_PASSWORD line.
  • address already in use: another program uses the port. See Ports.
  • Make sure the path you added in Gety starts with /data/, and matches the part after the colon in the configuration.
  • Make sure the user Gety runs as can read the folder on the NAS. See Run Gety as your own account.

The web page shows 403​

You opened it with a host name, such as nas.local, and Gety only accepts IP addresses and the name in GETY_PUBLIC_HOST. Open it with the IP address, or set GETY_PUBLIC_HOST to that name.

Other devices can't open the Web UI​

  • Make sure that device is on the same Wi-Fi or local network as your NAS.
  • If that device uses a VPN or proxy, turn it off and try again.

Memory use on the NAS soars​

Check whether a whole disk or / is listed under Settings → Local Files in the Web UI. Remove it, and add only the folders that hold your documents.

The log mentions fs.inotify.max_user_watches​

The folder holds more files and folders than your NAS lets one program watch, so Gety can't update the whole folder automatically. Raise fs.inotify.max_user_watches on the NAS, or choose periodic updates for the folder, then restart the container.

The log says a thread can't start, or mentions clone3​

Your NAS's Docker is older than 20.10.10. Update your NAS system and its Docker app.