Install Docker
You need Docker Engine and the Compose v2 plugin. Verify with:
docker compose versionNormal output means you can continue; otherwise install Docker Engine and the compose plugin first.
Place the files and configure
Upload the project's docker-compose.yml and .env.example from deploy/compose/, plus the Caddyfile from the parent directory, into one directory on the server (compose mounts ../Caddyfile). Then:
cp .env.example .env
# edit .env: set at least NOVARA_DOMAIN and NOVARA_SYNC_ALLOWED_HOSTS (the same domain)Both variables take your domain (e.g. sync.example.com), and the domain's A/AAAA records should point at this machine.
Open the firewall
Allow 80/tcp (certificate challenge), 443/tcp (the HTTPS entry) and 443/udp (HTTP/3). Both the cloud provider's security group and the system firewall must cover them. Beyond that, do not expose 5180 to the public internet — compose publishes it only on 127.0.0.1:5180.
Start the stack and create the space
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 are shown exactly once — save them on the spot.
- Caddy obtains and renews certificates automatically; wait a few dozen seconds;
docker compose psshould show both services running and novara-sync(healthy). - If
./datahas the wrong owner, the server refuses to start and printschown -R 1654:1654 ./data— just run it.
Pair
Desktop → Encrypted sync → Pair: https://your-domain + space id + enrollment secret, space key empty. Then issue phone credentials. If something fails, check the 403 and certificate entries in "Troubleshooting" first.