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
./dataat an SMB/NFS network share; SQLite will corrupt.
Create the Compose project
- Upload the files
Put the project's
docker-compose.ymland.env.examplefromdeploy/compose/, plus theCaddyfilefrom the parent directory, into one folder on the NAS (compose mounts it as../Caddyfile). - Create the project
Container Manager → Project → Create → choose "use an existing compose", pointing at the uploaded
docker-compose.yml. - Configure .env
Copy
.env.exampleto.envin the same folder; at minimum fillNOVARA_DOMAIN=your-domainandNOVARA_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 httpsalso starts Caddy and issues certificates automatically (80/443 must be reachable); give it a few dozen seconds.- In
docker compose psboth 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.