Skip to content

installation

github-actions[bot] edited this page Nov 30, 2026 · 3 revisions

๐Ÿ“ฆ Installation

โ† All documentation

Rollcall is one container (the API server with the web interface built in) plus a database: PostgreSQL, SQLite, or MySQL/MariaDB. SQLite is a single file in a volume, so it needs no second container. PostgreSQL is the one the examples use and the one Rollcall was first built on; all three run the same tests.

๐Ÿ“‹ Requirements

  • To run it: Docker with Docker Compose, or, without Docker, Linux (x86_64 or aarch64) or FreeBSD. See Installing without Docker.
  • A database: PostgreSQL 18, MySQL 8.0 or newer, MariaDB 10.6 or newer, or none at all with SQLite.
  • To build it from source: Rust (stable, 1.88 or newer), Node.js 26, and Docker for the database.

The image runs on amd64 and arm64, so a Raspberry Pi 4 or 5, or a NAS with an ARM processor, works too.

๐Ÿณ With Docker Compose

This uses PostgreSQL. For SQLite or MySQL/MariaDB, see other databases below. Save this as docker-compose.yml and change the password:

services:
  db:
    image: postgres:18
    restart: unless-stopped
    environment:
      POSTGRES_USER: rollcall
      POSTGRES_PASSWORD: change-me
      POSTGRES_DB: rollcall
    volumes:
      - pgdata:/var/lib/postgresql
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U rollcall -d rollcall"]
      interval: 5s
      retries: 10

  rollcall:
    image: ghcr.io/tronyx/rollcall:develop
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
    environment:
      DATABASE_URL: postgres://rollcall:change-me@db:5432/rollcall
    ports:
      - "8080:8080"
    volumes:
      - uploads:/app/uploads

volumes:
  pgdata:
  uploads:

Then start it:

docker compose up -d

Open http://localhost:8080 and create the first account, which is the admin. Rollcall creates and updates its tables when it starts. If you make Rollcall reachable from the internet, put it behind a reverse proxy with HTTPS. See the security policy.

Note

PostgreSQL 18 images keep their data under /var/lib/postgresql/18/docker, so the volume is mounted at /var/lib/postgresql, not at /var/lib/postgresql/data as with older versions.

The uploads volume holds the photos you upload. Without it, they are lost when the container is replaced.

๐Ÿ—„๏ธ Other databases

SQLite

No database container: the data is one file in the data volume.

services:
  rollcall:
    image: ghcr.io/tronyx/rollcall:develop
    restart: unless-stopped
    environment:
      DATABASE_URL: sqlite:///app/data/rollcall.db
    ports:
      - "8080:8080"
    volumes:
      - data:/app/data
      - uploads:/app/uploads

volumes:
  data:
  uploads:

MariaDB or MySQL

services:
  db:
    image: mariadb:11.4
    restart: unless-stopped
    environment:
      MARIADB_DATABASE: rollcall
      MARIADB_USER: rollcall
      MARIADB_PASSWORD: change-me
      MARIADB_ROOT_PASSWORD: change-me-too
    volumes:
      - dbdata:/var/lib/mysql
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      interval: 5s
      retries: 10

  rollcall:
    image: ghcr.io/tronyx/rollcall:develop
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
    environment:
      DATABASE_URL: mysql://rollcall:change-me@db:3306/rollcall
    ports:
      - "8080:8080"
    volumes:
      - uploads:/app/uploads

volumes:
  dbdata:
  uploads:

For MySQL, use image: mysql:8.4, rename the MARIADB_ variables to MYSQL_, and use test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1"] as the health check. To use a server you already run, create a database with CREATE DATABASE rollcall CHARACTER SET utf8mb4 and a user that can create tables in it.

Configuration has the DATABASE_URL format for each database.

๐Ÿ› ๏ธ From source

git clone https://github.com/tronyx/rollcall.git
cd rollcall

# 1. Database (or set DATABASE_URL=sqlite://rollcall.db in backend/.env and skip the container)
docker compose up -d db
cp .env.example backend/.env

# 2. Backend on :8080 (applies migrations on start)
cd backend
cargo run

# 3. Frontend on :5173, proxying /api to :8080
cd ../frontend
npm install
npm run dev

# Optional: sample data
../scripts/seed-dev.sh

To build the whole image yourself instead, run docker compose --profile full up -d --build from the repository root.

Clone this wiki locally