Skip to content

Install Ryot

This guide gets Ryot running on your own computer or server with Docker Compose. It takes about ten minutes. If you would rather not run a server, use Ryot Cloud instead.

You need:

  • A Linux machine (amd64 or arm64) with Docker and Docker Compose installed. Ryot also runs on other platforms; see Deployment.
  • The address you will use to open Ryot, for example http://192.168.1.20:8000 on your home network or https://ryot.example.com behind a reverse proxy.

Ryot stores its data in PostgreSQL 15 or later. The file below starts one for you.

docker-compose.yml
services:
ryot-db:
image: postgres:18-alpine # PostgreSQL 15 or later is required
restart: unless-stopped
container_name: ryot-db
volumes:
- postgres_storage:/var/lib/postgresql
environment:
- TZ=Europe/Amsterdam
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ryot:
image: ignisda/ryot:v11 # or ghcr.io/ignisda/ryot:v11
pull_policy: always
container_name: ryot
restart: unless-stopped
ports:
- "8000:8000"
environment:
- TZ=Europe/Amsterdam
- FRONTEND_URL=https://ryot.your-domain.com # REQUIRED: public URL of this instance (IP address is fine too)
- DATABASE_URL=postgres://postgres:postgres@ryot-db:5432/postgres # REQUIRED
- SERVER_ADMIN_ACCESS_TOKEN=28ebb3ae554fa9867ba0 # REQUIRED: set to a long random string [min 32 characters]
volumes:
- ryot_storage:/home/ryot/storage
volumes:
ryot_storage:
postgres_storage:
  1. Create an empty folder for Ryot and save the file above in it as docker-compose.yml.

  2. Generate a secret for SERVER_ADMIN_ACCESS_TOKEN. On Linux or macOS, run:

    Terminal window
    openssl rand -hex 32

    Replace the example value with the output. Never use the example value from this page.

  3. Set FRONTEND_URL to the address you will open Ryot at, for example http://192.168.1.20:8000.

  4. Set TZ on both services to your time zone, such as America/New_York.

  5. Start Ryot from the same folder:

    Terminal window
    docker compose up -d

    The first start takes a little longer while Ryot prepares the database and its built-in apps.

  6. Open your FRONTEND_URL in a browser. Ryot sends you to its sign-in page.

  7. Select Sign up, enter your email address and a password of at least 8 characters, then select Create account. Ryot prepares your account and opens your library.

You are ready to go. Continue with First steps.

Set all three before you start Ryot.

  • FRONTEND_URL: The exact address people type into their browser to reach Ryot, including http:// or https:// and the port if there is one, without a trailing slash. Sign-in only works from this address. Use HTTPS when Ryot is reachable from the internet. The iPhone and Android apps can only connect over HTTPS.

  • DATABASE_URL: How Ryot connects to PostgreSQL. The value in the file matches the ryot-db service. If you change POSTGRES_USER, POSTGRES_PASSWORD or POSTGRES_DB, change this URL to match.

  • SERVER_ADMIN_ACCESS_TOKEN: A long random secret of at least 32 characters. Ryot uses it to protect sign-ins and file links, and you enter it to unlock Instance Admin, where you manage the accounts on your server. Store it somewhere safe.

Every other setting is optional. See Configuration for the full list, including how to turn off sign-ups and use single sign-on.

  • Database: everything you track is in PostgreSQL, stored in the postgres_storage volume.
  • Files: uploads such as images live in the ryot_storage volume. You can use S3-compatible storage instead; see File storage.

Do not mount /home/ryot/work. It only holds temporary files.

Back up the database regularly. See Backups.

Images are published to Docker Hub and the GitHub Container Registry. Each release gets several tags. For example, release v11.2.3 is tagged v11.2.3, v11.2, v11 and latest, plus a tag for its commit.

  • v11 (used above) follows every release of this major version. This is the best choice for most people.
  • A full version such as v11.2.3 never changes. Use it if you want to upgrade only by hand.
  • latest follows every release, including future major versions that may need extra upgrade steps.
  • A pre-release such as v11.0.0-beta.1 gets only its full version tag. The v11 and latest tags move only for stable releases.

To move to a newer version, see Upgrading.

The image runs on Linux amd64 and arm64. The host must support the Landlock and seccomp security features that Ryot uses to run apps safely. Guides for Kubernetes, Railway and other platforms, reverse proxy settings and memory sizing are in Deployment.

“This server is configured for … Open that address to sign in.” You opened Ryot at a different address from FRONTEND_URL. Open the address shown, or change FRONTEND_URL and run docker compose up -d again.

There is no Sign up option. Sign-ups are turned off with USERS_ALLOW_REGISTRATION=false, or password sign-in is turned off with USERS_DISABLE_LOCAL_AUTH=true. See Authentication.

“Authentication unavailable” Password sign-in is turned off and no single sign-on provider is configured. Configure one, or remove USERS_DISABLE_LOCAL_AUTH.

The container keeps restarting. Run docker compose logs ryot and read the last lines, which usually name the setting or problem. If they mention Landlock or seccomp, your host does not support these features; see Deployment.