Help center/Self-hosting

ARTICLE / Self-hosting

Ubuntu VPS with Docker

On an Ubuntu VPS, install Docker Engine and the Compose v2 plugin, prepare the data directory, and start the NovaraSync container with the supplied compose file.

Install Docker

You need Docker Engine and the Compose v2 plugin. Verify with:

docker compose version

Normal 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 ps should show both services running and novara-sync (healthy).
  • If ./data has the wrong owner, the server refuses to start and prints chown -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.