Omnibus Docs

Docs › Getting started

Install with Docker

Omnibus runs as one container on top of the folders you already have. You need Docker, a folder for Omnibus to keep its database in, and the paths to your ebooks and audiobooks.

The image is sesloan/omnibus on Docker Hub. It runs on amd64 and arm64, so a Raspberry Pi or a NAS works as well as a server, and it already contains everything the server needs: ffmpeg for audiobook streaming and kepubify for Kobo downloads. You don't need a copy of the source code.

Before you start

  • Docker with Compose. Docker Desktop includes it; on Linux, install the docker-compose-plugin package so docker compose works.
  • Your library folders. One for ebooks (EPUB, PDF, CBZ) and one for audiobooks (M4B, MP3). A Calibre library folder works as it is. If you only have one kind, make an empty folder for the other.
  • The address you'll open Omnibus at. http://localhost:3000 on the same machine, or something like http://192.168.1.10:3000 from other devices on your network.

Quick start

  1. Make a folder for Omnibus and open a terminal in it:

    mkdir omnibus && cd omnibus
  2. Save this as docker-compose.yml in that folder:

    services:
      omnibus:
        image: sesloan/omnibus:latest
        container_name: omnibus
        restart: unless-stopped
    
        ports:
          - "3000:3000"                            # host:container — change the left side if 3000 is taken
    
        volumes:
          - ./config:/config                       # database, covers, journal images — back this up
          - ./cache:/cache                         # thumbnails and audio transcodes — safe to delete
          - /path/to/your/ebooks:/books            # EDIT: your ebook folder
          - /path/to/your/audiobooks:/audiobooks   # EDIT: your audiobook folder
    
        environment:
          PUID: "1000"                             # EDIT if `id -u` is not 1000
          PGID: "1000"                             # EDIT if `id -g` is not 1000
          OMNIBUS_PUBLIC_ORIGIN: "http://localhost:3000"   # EDIT: the address you open in the browser
          OMNIBUS_SECURE_COOKIES: "0"              # 0 over plain http; 1 (or remove) behind HTTPS
          EBOOK_LIBRARY_PATH: "/books"
          AUDIOBOOK_LIBRARY_PATH: "/audiobooks"
  3. Change the lines marked EDIT. What each one means is below.

  4. Start it:

    docker compose up -d
  5. Open the address you set in OMNIBUS_PUBLIC_ORIGIN and register. The first account you create is the admin. The first start scans both libraries, and books appear as the scan works through them. After that, a start rescans only a library that hasn't been scanned in the last hour. First run walks through what to do next.

What to edit

The two library paths
Replace /path/to/your/ebooks and /path/to/your/audiobooks with the folders on your machine. Leave the right-hand side (/books, /audiobooks) alone; that's where they appear inside the container. Point both at real folders, even if one is empty.
OMNIBUS_PUBLIC_ORIGIN
The exact address you type into the browser, scheme and port included. Kobo sync builds its download links from it, and behind a reverse proxy that rewrites the host name it's how Omnibus recognises sign-ins as its own: there, an address missing from it makes signing in fail with a 403. To reach Omnibus from more than one address, list them separated by commas: http://localhost:3000,http://192.168.1.10:3000.
PUID and PGID
The user and group Omnibus writes files as, so the database and cache end up owned by you rather than root. Run id -u and id -g to find yours.
OMNIBUS_SECURE_COOKIES
0 while you reach Omnibus over plain http://. Once it sits behind HTTPS, set it to 1 or remove the line. See HTTPS and reverse proxies.

What lives where

VolumeWhat's in itBack it up?
/configThe database, covers you've uploaded, and journal images. Everyone's progress, shelves, highlights and settings live here.Yes. It can't be rebuilt.
/cacheThumbnails and audiobook transcodes.No. Omnibus rebuilds it.
/books, /audiobooksYour libraries. Omnibus never changes, moves or renames a book file. It adds files only to save a cover image beside a book that has none, or to add a book (an upload, or a finished book request), and removes them only when an admin deletes a book's files.Your own backups, as before.

Add :ro to a library mount (/path/to/your/ebooks:/books:ro) to make it read-only inside the container. Reading, syncing and editing still work, and covers are read from inside each file instead of saved beside it. Uploading books, finished book requests and deleting a book's files from disk don't work, since they need to write to the folder.

Adding it to an existing compose file

  • Copy the omnibus: block into your services: section and make the same EDIT changes.
  • ./config and ./cache are relative to the compose file. Use absolute paths if you prefer, for example /srv/omnibus/config:/config.
  • If port 3000 is taken, change the left side of ports ("8090:3000") and change OMNIBUS_PUBLIC_ORIGIN to match.

Without Compose

The same container as a single docker run:

docker run -d --name omnibus --restart unless-stopped \
  -p 3000:3000 \
  -v "$PWD/config:/config" \
  -v "$PWD/cache:/cache" \
  -v /path/to/your/ebooks:/books \
  -v /path/to/your/audiobooks:/audiobooks \
  -e PUID=1000 -e PGID=1000 \
  -e OMNIBUS_PUBLIC_ORIGIN=http://localhost:3000 \
  -e OMNIBUS_SECURE_COOKIES=0 \
  -e EBOOK_LIBRARY_PATH=/books \
  -e AUDIOBOOK_LIBRARY_PATH=/audiobooks \
  sesloan/omnibus:latest

Choosing a version

latest is always the newest release, and a new release ships with every change merged to the project. To stay on one version until you choose to move, pin its tag, for example sesloan/omnibus:0.37.4. The tags are listed on Docker Hub and the changes in each are in the release notes. Backups and updates covers upgrading.

Building from source

  1. Clone the repository.

  2. In its docker-compose.yml, replace the image: line with build: .

  3. Run docker compose up -d --build. The first build compiles the whole server and takes a while.

If it doesn't work

Signing in does nothing, or answers 403
OMNIBUS_SECURE_COOKIES isn't 0 on plain http, so the browser drops the sign-in cookie. Behind a reverse proxy, OMNIBUS_PUBLIC_ORIGIN doesn't list the address in your browser's address bar.
The page won't load
The host port is taken, or you opened the container's port rather than the host's (the left side of ports).
The library is empty
The host paths on the left of /books and /audiobooks don't exist, or the PUID user can't read them.
Files are owned by root
Set PUID and PGID to your own IDs, then chown anything created before the change.

More in Troubleshooting.