# documentation: https://github.com/linuxserver/docker-calibre-web
# slogan: Calibre-web is a web app providing a clean interface for browsing, reading and downloading eBooks.
# category: media
# tags: calibre,calibre-web,ebook,library,epub,ereader,kindle,book,reader
# logo: svgs/calibre-web.svg
# port: 8083

services:
  calibre-web:
    image: lscr.io/linuxserver/calibre-web:latest
    environment:
      - SERVICE_URL_CALIBRE_8083
      - PUID=1000
      - PGID=1000
      - TZ=${TZ:-Etc/UTC}
      # optional & x86-64 only Adds the ability to perform ebook conversion
      - 'DOCKER_MODS=${DOCKER_MODS:-linuxserver/mods:universal-calibre}'
    volumes:
      - calibre_web_data:/config
      - calibre_library:/books
    healthcheck:
      test:
        - CMD
        - curl
        - '-f'
        - 'http://127.0.0.1:8083'
      interval: 5s
      timeout: 20s
      retries: 10
