BookOrbit

A library and reader for ebooks, audiobooks, comics, and PDFs.

View on GitHub ↗

BookOrbit catalogs digital books and lets you read or listen in a browser. It can also serve an OPDS catalog to compatible reading apps.

Use Cases - AI Reports and White Papers

Alongside my books, I use BookOrbit to read reports and white papers. I have AI agents generate reports on a regular schedule and scrape the web for white papers.

The files land in two NFS shares on my Synology NAS. I mount them in the BookOrbit container at /reports and /whitepapers and add each folder as a separate library. The libraries sync regularly to the BookOrbit client on my iPad, where I do most of my reading.

A monthly AMC movie report

I go to the movies often and have an AMC Stubs A-List membership. Near the end of each month, a scheduled skill puts together a report on the movies AMC plans to show the following month.

The skill publishes a PDF to my Reports library for reading in BookOrbit. I’m sharing the HTML version here for easier reading in a browser. Read the November 2026 AMC movie report.

Docker Compose

name: bookorbit
services:
  app:
    labels:
      com.centurylinklabs.watchtower.enable: "true"
    container_name: bookorbit-app
    image: ${APP_IMAGE:-ghcr.io/bookorbit/bookorbit:latest}
    restart: unless-stopped
    init: true
    env_file:
      - ./.env
    ports:
      - ${APP_PORT:-3000}:${PORT:-3000}
    environment:
      NODE_ENV: production
      PORT: ${PORT:-3000}
      DATABASE_URL: ${DATABASE_URL:-}
      POSTGRES_HOST: ${POSTGRES_HOST:-postgres}
      POSTGRES_PORT: ${POSTGRES_PORT:-5432}
      POSTGRES_USER: ${POSTGRES_USER:-bookorbit}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set a database password}
      POSTGRES_DB: ${POSTGRES_DB:-bookorbit}
      JWT_SECRET: ${JWT_SECRET:?Generate a JWT secret}
      PODCAST_ENCRYPTION_KEY: ${PODCAST_ENCRYPTION_KEY:-}
      BOOK_REQUEST_ENCRYPTION_KEY: ${BOOK_REQUEST_ENCRYPTION_KEY:-}
      SETUP_BOOTSTRAP_TOKEN: ${SETUP_BOOTSTRAP_TOKEN:?Generate a setup token}
      APP_URL: ${APP_URL:?Set the BookOrbit URL}
      CLIENT_URL: ${CLIENT_URL:-${APP_URL:?Set the BookOrbit URL}}
      TZ: ${TZ:-UTC}
      PUID: ${PUID:-1000}
      PGID: ${PGID:-1000}
      NODE_MAX_OLD_SPACE_SIZE: ${NODE_MAX_OLD_SPACE_SIZE:-auto}
      BOOK_DOCK_PATH: ${BOOK_DOCK_PATH:-}
      LIBRARY_BROWSE_ROOT: ${LIBRARY_BROWSE_ROOT:-}
      DISABLE_LOCAL_AUTH: ${DISABLE_LOCAL_AUTH:-false}
    depends_on:
      postgres:
        condition: service_healthy
    volumes:
      - ${BOOKS_HOST_PATH:-./books}:/books
      - ./data/app:/data
      - ${TORRENT_HOST_PATH:?Set the host torrent folder}:/torrent
      - type: bind
        source: ${REPORTS_HOST_PATH:?Set the host path to the mounted reports share}
        target: /reports
        read_only: true
        bind:
          create_host_path: false
      - type: bind
        source: ${WHITEPAPERS_HOST_PATH:?Set the host path to the mounted whitepapers share}
        target: /whitepapers
        read_only: true
        bind:
          create_host_path: false
    read_only: true
    tmpfs:
      - /tmp
    cap_drop:
      - ALL
    cap_add:
      - CHOWN
      - DAC_OVERRIDE
      - FOWNER
      - SETGID
      - SETUID
    security_opt:
      - no-new-privileges:true
    stop_grace_period: 30s

  kokoro:
    labels:
      com.centurylinklabs.watchtower.enable: "true"
    container_name: bookorbit-kokoro
    image: ${KOKORO_IMAGE:-ghcr.io/remsky/kokoro-fastapi-cpu:v0.8.0}
    profiles:
      - tts
    restart: unless-stopped
    init: true
    expose:
      - '8880'
    security_opt:
      - no-new-privileges:true
    stop_grace_period: 30s
    healthcheck:
      test:
        - CMD-SHELL
        - python -c "import urllib.request;urllib.request.urlopen('http://127.0.0.1:8880/v1/audio/voices')"
      interval: 30s
      timeout: 10s
      retries: 5
      start_period: 60s

  postgres:
    labels:
      com.centurylinklabs.watchtower.enable: "true"
    container_name: bookorbit-db
    image: pgvector/pgvector:pg18
    restart: unless-stopped
    environment:
      POSTGRES_USER: ${POSTGRES_USER:-bookorbit}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set a database password}
      POSTGRES_DB: ${POSTGRES_DB:-bookorbit}
      PGDATA: /var/lib/postgresql/data/pgdata
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    healthcheck:
      test:
        - CMD-SHELL
        - pg_isready -U "$${POSTGRES_USER}" -d "$${POSTGRES_DB}"
      interval: 10s
      timeout: 5s
      retries: 10
      start_period: 20s

← Back to category