Sign in

calibre-web

0.6.27-ls13

Calibre-web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing Calibre database. It is also possible to integrate google drive and edit metadata and your calibre library through the app itself. This software is a fork of library and licensed under the GPL v3 License.

docker pull ghcr.io/linuxserver-playground/calibre-web:latest
0.6.27-ls13 · amd64 · CI screenshot · test report

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
Where calibre-web stores the internal database and config.
Where your preexisting calibre database is located.
WebUI
Optional settings2

Tick what you need; it is added to every output with its value.

Mods

2 for calibre-web, 1 universal mods suggested for it, and 12 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  calibre-web:
    image: ghcr.io/linuxserver-playground/calibre-web:latest
    container_name: calibre-web
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/calibre-web/data:/config
      - /path/to/calibre/library:/books
    ports:
      - 8083:8083
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Replace the /path/to folders with real folders on your host; they are created if missing.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestReleases of Calibre-Webbranch master · stable0.6.27-ls13amd64 · arm64 passed
:nightlyCommits to the master branch of Calibre-Webbranch nightly · prereleasenightly-6e840acb-ls9amd64 · arm64 passed

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/calibre-web:0.6.27-ls13

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-ubuntu:noble
Upstream version
0.6.27
amd64 compressed
251 MB · 11 layers
arm64 compressed
247 MB · 11 layers
amd64 packages
770 · Ubuntu 24.04.5 LTS
arm64 packages
770 · Ubuntu 24.04.5 LTS
Tests
passed
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

calibre-web on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
master → :latestsuccess
0.6.27
? unknown––
nightly → :nightlysuccess
6e840acb
? unknown––

Application setup#

Webui can be found at http://your-ip:8083

On the initial setup screen, enter /books as your calibre library location.

Default admin login: Username: admin Password: admin123

If you lock yourself out or forget a password, you will need to specify the app.db similar to this: docker exec -it calibre-web python3 /app/calibre-web/cps.py -p /config/app.db -s <user>:<pass> If you fail to specify the proper db, it will appear to succeed, but it will not work.

Unrar is included by default and needs to be set in the Calibre-Web admin page (Basic Configuration:External Binaries) with a path of /usr/bin/unrar

64bit only We have implemented the optional ability to pull in the dependencies to enable ebook conversion utilising Calibre, this means if you don’t require this feature the container isn’t uneccessarily bloated but should you require it, it is easily available. This optional layer will be rebuilt automatically on our CI pipeline upon new Calibre releases so you can stay up to date. To use this option add the optional environmental variable as shown in the docker-mods section to pull an addition docker layer to enable ebook conversion and then in the Calibre-Web admin page (Basic Configuration:External Binaries) set the Path to Calibre E-Book Converter to /usr/bin/ebook-convert on versions 0.6.21 and lower. For 0.6.22 and higher, set the directory, /usr/bin/ only.

This image contains the kepubify ebook conversion tool (MIT License) to convert epub to kepub. In the Calibre-Web admin page (Basic Configuration:External Binaries) set the Path to Kepubify E-Book Converter to /usr/bin/kepubify

Parameters#

Ports#
PortFunctionRequired
8083:8083WebUIrequired
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
DOCKER_MODS=linuxserver/mods:universal-calibre#optional & x86-64 only Adds the ability to perform ebook conversionoptional
OAUTHLIB_RELAX_TOKEN_SCOPE=1Optionally set this to allow Google OAUTH to workoptional
Volumes#
PathFunctionRequired
/configWhere calibre-web stores the internal database and config.required
/booksWhere your preexisting calibre database is located.required

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull calibre-web
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d calibre-web
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/calibre-web:latest
  • Stop the running container:

    docker stop calibre-web
  • Delete the container:

    docker rm calibre-web
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-calibre-web.git
cd docker-calibre-web
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/calibre-web:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 12 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
0.6.27-ls13master · 0de811e6weekly package checkbasesuccess251 MB amd64247 MB arm64
0.6.27-ls12master · b04f435fweekly package checkbasesuccess255 MB amd64252 MB arm64
0.6.27-ls11master · 766a994bweekly package checkpackagessuccess256 MB amd64252 MB arm64
0.6.27-ls10master · 0669c21fweekly package checkbasesuccess256 MB amd64252 MB arm64
nightly-6e840acb-ls9nightly · 784227d0weekly package checkbasesuccess256 MB amd64252 MB arm64
0.6.27-ls9master · b3d6472aweekly package checkbasesuccess262 MB amd64257 MB arm64
nightly-6e840acb-ls8nightly · d8c1421dweekly package checkbasesuccess251 MB amd64246 MB arm64
nightly-6e840acb-ls7nightly · 080ba05fweekly package checkpackagessuccess252 MB amd64248 MB arm64
nightly-6e840acb-ls6nightly · 66617f33weekly package checkbasesuccess252 MB amd64248 MB arm64
nightly-6e840acb-ls5nightly · 3315cfc0weekly package checkbasesuccess250 MB amd64246 MB arm64
Older releases12Release, run record and run on GitHub
Older releases of calibre-web, without a page on this site
TagBuiltLinks
0.6.27-ls8masterRelease 0.6.27-ls8 on GitHub (opens in a new tab)run.json of 0.6.27-ls8Run that built 0.6.27-ls8, on GitHub (opens in a new tab)
0.6.27-ls7masterRelease 0.6.27-ls7 on GitHub (opens in a new tab)run.json of 0.6.27-ls7Run that built 0.6.27-ls7, on GitHub (opens in a new tab)
0.6.27-ls6masterRelease 0.6.27-ls6 on GitHub (opens in a new tab)run.json of 0.6.27-ls6Run that built 0.6.27-ls6, on GitHub (opens in a new tab)
0.6.27-ls5masterRelease 0.6.27-ls5 on GitHub (opens in a new tab)run.json of 0.6.27-ls5Run that built 0.6.27-ls5, on GitHub (opens in a new tab)
nightly-6e840acb-ls4nightlyRelease nightly-6e840acb-ls4 on GitHub (opens in a new tab)run.json of nightly-6e840acb-ls4Run that built nightly-6e840acb-ls4, on GitHub (opens in a new tab)
0.6.27-ls4masterRelease 0.6.27-ls4 on GitHub (opens in a new tab)run.json of 0.6.27-ls4Run that built 0.6.27-ls4, on GitHub (opens in a new tab)
nightly-6e840acb-ls3nightlyRelease nightly-6e840acb-ls3 on GitHub (opens in a new tab)run.json of nightly-6e840acb-ls3Run that built nightly-6e840acb-ls3, on GitHub (opens in a new tab)
nightly-6e840acb-ls2nightlyRelease nightly-6e840acb-ls2 on GitHub (opens in a new tab)run.json of nightly-6e840acb-ls2Run that built nightly-6e840acb-ls2, on GitHub (opens in a new tab)
0.6.27-ls3masterRelease 0.6.27-ls3 on GitHub (opens in a new tab)run.json of 0.6.27-ls3Run that built 0.6.27-ls3, on GitHub (opens in a new tab)
0.6.27-ls2masterRelease 0.6.27-ls2 on GitHub (opens in a new tab)run.json of 0.6.27-ls2Run that built 0.6.27-ls2, on GitHub (opens in a new tab)
0.6.27-ls1masterRelease 0.6.27-ls1 on GitHub (opens in a new tab)run.json of 0.6.27-ls1Run that built 0.6.27-ls1, on GitHub (opens in a new tab)
nightly-6e840acb-ls1nightlyRelease nightly-6e840acb-ls1 on GitHub (opens in a new tab)run.json of nightly-6e840acb-ls1Run that built nightly-6e840acb-ls1, on GitHub (opens in a new tab)

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for calibre-web
  • dtrpg-metadata

    This adds a new metadata provider for calibre-web which will look for information on DriveThruRPG.com

    ghcr.io/linuxserver-playground/mods:calibre-web-dtrpg-metadata
  • KCC (Kindle Comic Converter)

    This mod adds KCC and its multitude of ebook processing (upscale, stretch, right to left for manga...) to Calibre Web, to be installed/updated during container start.

    ghcr.io/linuxserver-playground/mods:calibre-web-kcc
  • Calibreuniversal

    This mod adds the calibre binary to calibre-web, or other 64-bit Ubuntu-based containers, for ebook conversions.

    ghcr.io/linuxserver-playground/mods:universal-calibre

Plus 12 other universal mods that work with every image.

Reverse proxy#

calibre-web listens on http://calibre-web:8083.

What you named the calibre-web container; SWAG resolves it on the shared network.

Uncomments the matching include lines; API locations stay open so client apps keep working.

  • Save as /config/nginx/proxy-confs/calibre-web.subdomain.conf in SWAG (drop the .sample) and restart SWAG.
  • Your DNS needs a record for calibre-web.yourdomain.com (a CNAME to the domain, or a wildcard), and SWAG's SUBDOMAINS must cover it.
  • The calibre-web container and SWAG must share a user-defined Docker network so the name resolves.
## Version 2026/11/27
# make sure that your calibre-web container is named calibre-web
# make sure that your dns has a cname set for calibre-web

server {
    listen 443 ssl;
#    listen 443 quic;
    listen [::]:443 ssl;
#    listen [::]:443 quic;

    server_name calibre-web.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth (requires ldap-location.conf in the location block)
    #include /config/nginx/ldap-server.conf;

    # enable for Authelia (requires authelia-location.conf in the location block)
    #include /config/nginx/authelia-server.conf;

    # enable for Authentik (requires authentik-location.conf in the location block)
    #include /config/nginx/authentik-server.conf;

    # enable for Tinyauth (requires tinyauth-location.conf in the location block)
    #include /config/nginx/tinyauth-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable for ldap auth (requires ldap-server.conf in the server block)
        #include /config/nginx/ldap-location.conf;

        # enable for Authelia (requires authelia-server.conf in the server block)
        #include /config/nginx/authelia-location.conf;

        # enable for Authentik (requires authentik-server.conf in the server block)
        #include /config/nginx/authentik-location.conf;

        # enable for Tinyauth (requires tinyauth-server.conf in the server block)
        #include /config/nginx/tinyauth-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app calibre-web;
        set $upstream_port 8083;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }

    location ~ (/calibre-web)?/opds {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app calibre-web;
        set $upstream_port 8083;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }

    location ~ (/calibre-web)?/kobo {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app calibre-web;
        set $upstream_port 8083;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

Default sample.

Source: linuxserver-playground.github.io/hub/api/v1/catalog/calibre-web/proxy.json

Changelog#

  1. Add libxfixes3 and libasound2t64 to support epub to pdf conversion; also set --no-sandbox for qtwebengine.

  2. Set kepubify path by default.

  3. Rebase to noble.

  4. Add new dep, xdg-utils.

  5. Add new dep, libmagic1.

  6. Remove some packages that are required by the calibre mod but not the base container.

  7. Install unrar from linuxserver repo (opens in a new tab). Switch to Python virtual environment.

  8. Deprecate armhf.

31 earlier entries
  1. Add cmake as build dep for Levenshtein.
  2. Add ghostscript, libxtst6, libxkbfile-dev.
  3. Improve init script and prevent harmless error.
  4. Rebase to jammy. Upgrade to s6v3. Clean up build dependencies.
  5. Update pip arguments to ignore distro installed packages.
  6. Add note on optional OAUTHLIB_RELAX_TOKEN_SCOPE for Google OAUTH support.
  7. Add linuxserver wheel index.
  8. Add libxrandr2
  9. Add nightly tag
  10. Add python3-pkg-resources
  11. Rebase to Ubuntu Focal, see here (opens in a new tab) for troubleshooting armhf.
  12. Add libxi6
  13. Add kepubify for arm64v8
  14. Add kepubify for x86-64 and arm32v7
  15. Add libxslt1.1 and update ImageMagick policy
  16. Adding LDAP libs.
  17. Migrate to Python3.
  18. Add libxcomposite1.
  19. Add docker mod to enable optional ebook conversion on x86-64. Add unrar.
  20. Rebase to Ubuntu Bionic & add Gdrive support.
  21. Switching to new Base images, shift to arm32v7 tag.
  22. Rebase to alpine 3.9, use repo version of imagemagick.
  23. Add pipeline logic and multi arch.
  24. Remove guest user from default app.db.
  25. Rebase to alpine 3.8.
  26. New build pushed, all versions below 67 have vulnerability (opens in a new tab).
  27. Deprecate cpu_core routine lack of scaling.
  28. Rebase to alpine 3.7.
  29. Use cpu core counting routine to speed up build time.
  30. Curl version for imagemagick.
  31. Initial release.

Support#

Questions about running calibre-web? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it calibre-web /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f calibre-web
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' calibre-web
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/calibre-web:latest

Community project

Improve calibre-web

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the calibre-web image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the calibre-web image, test it and draft the PR.
  • Make a mod for calibre-web that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

calibre

v9.19.0-ls14

Calibre is a powerful and easy to use e-book manager. Users say it's outstanding and a must-have. It'll allow you to do nearly everything and it takes things a step beyond normal e-book software. It's also completely free and open source and great for both casual users and computer experts.

0 GitHub starsselkiesarm64

cops

4.6.1-ls11

Cops by Sébastien Lucas, now maintained by MikesPub, stands for Calibre OPDS (and HTML) Php Server. COPS links to your Calibre library database and allows downloading and emailing of books directly from a web browser and provides a OPDS feed to connect to your devices. Changes in your Calibre library are reflected immediately in your COPS pages. See : COPS's home for more details. Don't forget to check the Wiki. ## Why? (taken from the author's site) In my opinion Calibre is a marvelous tool but is too big and has too much dependencies to be used for its content server. That's the main reason why I coded this OPDS server. I needed a simple tool to be installed on a small server (Seagate Dockstar in my case). I initially thought of Calibre2OPDS but as it generate static file no search was possible. Later I added an simple HTML catalog that should be usable on my Kobo. So COPS's main advantages are : * No need for many dependencies. * No need for a lot of CPU or RAM. * Not much code. * Search is available. * With Dropbox / owncloud it's very easy to have an up to date OPDS server. * It was fun to code. If you want to use the OPDS feed don't forget to specify /feed at the end of your URL.

0 GitHub starsalpine-nginxarm64

kavita

v0.9.1.4-ls9

Kavita is a fast, feature rich, cross platform reading server. Built with a focus for being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family!

0 GitHub starsubuntuarm64

lazylibrarian

88fced72-ls75

Lazylibrarian is a program to follow authors and grab metadata for all your digital reading needs. It uses a combination of Goodreads Librarything and optionally GoogleBooks as sources for author info and book info. This container is based on the DobyTang fork.

0 GitHub starsubuntuarm64