Help center/Self-hosting

ARTICLE / Self-hosting

Synology Container Manager

This walkthrough deploys NovaraSync with Synology Container Manager: create the space, mount a local data directory, and run the container without root.

Prerequisites

  • DSM 7.2+, with Container Manager installable from the Package Center.
  • A domain (required for the https profile with automatic certificates; without one, see the self-signed path in "Reverse proxy and HTTPS").
  • The data directory on a local volume — do not point ./data at an SMB/NFS network share; SQLite will corrupt.

Create the Compose project

  1. Upload the files

    Put the project's docker-compose.yml and .env.example from deploy/compose/, plus the Caddyfile from the parent directory, into one folder on the NAS (compose mounts it as ../Caddyfile).

  2. Create the project

    Container Manager → Project → Create → choose "use an existing compose", pointing at the uploaded docker-compose.yml.

  3. Configure .env

    Copy .env.example to .env in the same folder; at minimum fill NOVARA_DOMAIN=your-domain and NOVARA_SYNC_ALLOWED_HOSTS=your-domain.

The first-run three steps

Run these in Container Manager's terminal or over SSH. Step one creates the space with a one-off container — it mounts the same ./data as the server, so credentials cannot land in the wrong place:

cp .env.example .env
docker compose run --rm novara-sync space create --name "My Space"
docker compose --profile https up -d
docker compose ps
  • The space id and enrollment secret in the output are shown exactly once — save them on the spot.
  • --profile https also starts Caddy and issues certificates automatically (80/443 must be reachable); give it a few dozen seconds.
  • In docker compose ps both services should be running, with novara-sync (healthy).

Pairing and what follows

Desktop → Encrypted sync → Pair: fill in https://your-domain, the space id and the enrollment secret, and leave the space key empty. After pairing you can issue phone credentials.

The bind-mounted ./data keeps the host's ownership, while the container runs as a non-root user (uid 1654). With the wrong owner the server refuses to start and prints the exact command to run:

NovaraSync: refusing to start - the data directory (/data) cannot be written (...)
... fix it with `sudo chown -R 1654:1654 ./data`, or switch to the named volume ...

Do what it says — this is a designed error, not a crash. Verify by restarting the NAS: the data survives and sync continues.