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.
Before you start
Section titled “Before you start”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:8000on your home network orhttps://ryot.example.combehind a reverse proxy.
Ryot stores its data in PostgreSQL 15 or later. The file below starts one for you.
The Compose file
Section titled “The Compose file”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:Start Ryot
Section titled “Start Ryot”-
Create an empty folder for Ryot and save the file above in it as
docker-compose.yml. -
Generate a secret for
SERVER_ADMIN_ACCESS_TOKEN. On Linux or macOS, run:Terminal window openssl rand -hex 32Replace the example value with the output. Never use the example value from this page.
-
Set
FRONTEND_URLto the address you will open Ryot at, for examplehttp://192.168.1.20:8000. -
Set
TZon both services to your time zone, such asAmerica/New_York. -
Start Ryot from the same folder:
Terminal window docker compose up -dThe first start takes a little longer while Ryot prepares the database and its built-in apps.
-
Open your
FRONTEND_URLin a browser. Ryot sends you to its sign-in page. -
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.
What the required settings mean
Section titled “What the required settings mean”Set all three before you start Ryot.
-
FRONTEND_URL: The exact address people type into their browser to reach Ryot, includinghttp://orhttps://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 theryot-dbservice. If you changePOSTGRES_USER,POSTGRES_PASSWORDorPOSTGRES_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.
Where your data lives
Section titled “Where your data lives”- Database: everything you track is in PostgreSQL, stored in the
postgres_storagevolume. - Files: uploads such as images live in the
ryot_storagevolume. 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.
Choose an image tag
Section titled “Choose an image tag”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.3never changes. Use it if you want to upgrade only by hand. latestfollows every release, including future major versions that may need extra upgrade steps.- A pre-release such as
v11.0.0-beta.1gets only its full version tag. Thev11andlatesttags move only for stable releases.
To move to a newer version, see Upgrading.
Other platforms
Section titled “Other platforms”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.
Troubleshooting
Section titled “Troubleshooting”“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.