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-pluginpackage sodocker composeworks. - 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:3000on the same machine, or something likehttp://192.168.1.10:3000from other devices on your network.
Quick start
-
Make a folder for Omnibus and open a terminal in it:
mkdir omnibus && cd omnibus -
Save this as
docker-compose.ymlin 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" -
Change the lines marked
EDIT. What each one means is below. -
Start it:
docker compose up -d -
Open the address you set in
OMNIBUS_PUBLIC_ORIGINand 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/ebooksand/path/to/your/audiobookswith 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. PUIDandPGID- The user and group Omnibus writes files as, so the database and cache end up owned by you rather than root. Run
id -uandid -gto find yours. OMNIBUS_SECURE_COOKIES0while you reach Omnibus over plainhttp://. Once it sits behind HTTPS, set it to1or remove the line. See HTTPS and reverse proxies.
What lives where
| Volume | What's in it | Back it up? |
|---|---|---|
/config | The database, covers you've uploaded, and journal images. Everyone's progress, shelves, highlights and settings live here. | Yes. It can't be rebuilt. |
/cache | Thumbnails and audiobook transcodes. | No. Omnibus rebuilds it. |
/books, /audiobooks | Your 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 yourservices:section and make the sameEDITchanges. ./configand./cacheare 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 changeOMNIBUS_PUBLIC_ORIGINto 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
Clone the repository.
In its
docker-compose.yml, replace theimage:line withbuild: .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_COOKIESisn't0on plain http, so the browser drops the sign-in cookie. Behind a reverse proxy,OMNIBUS_PUBLIC_ORIGINdoesn'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
/booksand/audiobooksdon't exist, or thePUIDuser can't read them. - Files are owned by root
- Set
PUIDandPGIDto your own IDs, thenchownanything created before the change.
More in Troubleshooting.