Skip to content
github-actions[bot] edited this page Dec 1, 2026 · 2 revisions

🐳 Docker

← All documentation

The image contains the Rollcall server and the built web interface. It runs on amd64 and arm64, and uses a PostgreSQL or MySQL/MariaDB database next to it, or an SQLite file in its /app/data volume. Installation has a complete docker-compose.yml for each.

Registry Image
GitHub ghcr.io/tronyx/rollcall
Docker Hub tronyx/rollcall

The develop tag comes from the develop branch. The latest tag will come from main once there is a release. Each week, a new build picks up Debian's security fixes. Before an image is published, it is started next to PostgreSQL 18, and on its own with SQLite, and tested, and Trivy scans it for known vulnerabilities. An image with a critical vulnerability that has a fix is not published.

πŸ”„ Updating

docker compose pull
docker compose up -d

Rollcall applies any new database migrations when it starts.

πŸ’Ύ Backups

Rollcall backs itself up: once a day by default, keeping the last 7, into /app/data/backups (BACKUP_DIR). Each backup is one zip file with every account, spool, setting and photo. An admin changes the schedule, makes a backup now, downloads, restores or deletes backups in Settings β€Ί Backups. From the command line:

docker compose exec rollcall rollcall backup                 # prints the new file's path
docker compose exec rollcall rollcall restore /app/data/backups/rollcall-backup-20261128-030000.zip

Keep backups private. A backup has every account's password hash and API token hashes, and the addresses of notification channels, which for Slack, Discord and webhooks include their secret. It leaves out printer access codes, channel tokens, and the AI, mail and MQTT passwords. Rollcall writes backup files readable by its own user only; keep the copies you download as safe.

A restore replaces everything with the backup and signs everyone out. It works on any database, whichever one the backup came from. Keep copies somewhere other than the server too: docker compose cp rollcall:/app/data/backups ./rollcall-backups.

🚚 Moving to another database

  1. Make a backup and download it (or copy it out of /app/data/backups).
  2. Start Rollcall on the new database, with a new DATABASE_URL.
  3. Restore the backup, from the command line or in Settings β€Ί Backups. The command line works before anyone has signed in: copy the file into the container with docker compose cp, then run rollcall restore on it.

πŸ—ƒοΈ The database's own tools

You can also back up with each database's own tools. Everything is in the database, except the photos you upload, which are files in the uploads volume. Back up the photos the same way for every database:

docker compose cp rollcall:/app/uploads ./rollcall-uploads

To restore them into an empty uploads volume:

docker compose cp ./rollcall-uploads/. rollcall:/app/uploads

Then the database itself:

Database Back up Restore into an empty database
PostgreSQL docker compose exec db pg_dump -U rollcall rollcall > rollcall-backup.sql docker compose exec -T db psql -U rollcall rollcall < rollcall-backup.sql
MariaDB docker compose exec db mariadb-dump -u rollcall -p rollcall > rollcall-backup.sql docker compose exec -T db mariadb -u rollcall -p rollcall < rollcall-backup.sql
MySQL docker compose exec db mysqldump -u rollcall -p rollcall > rollcall-backup.sql docker compose exec -T db mysql -u rollcall -p rollcall < rollcall-backup.sql
SQLite docker compose stop rollcall, then docker compose cp rollcall:/app/data ./rollcall-data docker compose cp ./rollcall-data/. rollcall:/app/data, then start it

Stop Rollcall before copying an SQLite file, so the copy isn't taken halfway through a write.

πŸ”’ The container

Rollcall runs as an unprivileged user and listens on port 8080. Uploaded photos are saved in /app/uploads, and an SQLite database in /app/data; both are volumes. Settings are environment variables; see Configuration.

By default that user is UID and GID 10001. To have the files belong to your own user, for example when /app/data is a folder on the host, set PUID and PGID:

services:
  rollcall:
    environment:
      PUID: 1000
      PGID: 1000
    volumes:
      - ./rollcall-data:/app/data

The image has a HEALTHCHECK that runs rollcall health, which asks the server's /api/health, so docker ps shows whether Rollcall is answering.

The container starts as root only long enough to give /app/uploads and /app/data to that user, then drops root before Rollcall starts. docker compose exec rollcall rollcall reset-password runs as that user too. To never start as root, use Compose's user: "1000:1000" instead; then PUID and PGID are ignored, and the folders must already be writable by that user.

Clone this wiki locally