--- version: "3.8" networks: traefik: external: true calibre: name: calibre services: calibre: image: lscr.io/linuxserver/calibre:7.26.0 container_name: calibre security_opt: - seccomp:unconfined #optional environment: - PUID=${PUID:-8796} - PGID=${PGID:-3005} - TZ=America/Vancouver # - PASSWORD= #optional # - CLI_ARGS= #optional volumes: - ${CALIBRE_CONFIG:-/mnt/docker/volumes/calibre/calibre-config}:/config - ${CALIBRE_BOOKS:-/mnt/docker/volumes/calibre/books}:/books ports: - 8081:8080 - 8182:8181 - 8082:8081 restart: unless-stopped networks: - traefik - calibre labels: - "traefik.enable=true" - "traefik.http.routers.calibre.rule=Host(`${CALIBRE_HOST:-calibre.jumper.mnke.org}`)" - "traefik.http.routers.calibre.entrypoints=websecure" - "traefik.http.routers.calibre.tls=true" - "traefik.http.services.calibre.loadbalancer.server.port=8080" - "traefik.docker.network=traefik" deploy: resources: limits: cpus: '0.15' memory: 512M reservations: cpus: '0.1' memory: 128M calibre-web: image: lscr.io/linuxserver/calibre-web:0.6.24 container_name: calibre-web environment: - PUID=${PUID:-8796} - PGID=${PGID:-3005} - TZ=America/Vancouver # - DOCKER_MODS=linuxserver/mods:universal-calibre #optional # - OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional volumes: - ${CALIBRE_WEB_CONFIG:-/mnt/docker/volumes/calibre/calibre-web-config}:/config - ${CALIBRE_BOOKS:-/mnt/docker/volumes/calibre/books}:/books restart: unless-stopped networks: - traefik - calibre labels: - "traefik.enable=true" - "traefik.http.routers.calibre-web.rule=Host(`${CALIBRE_WEB_HOST:-calibre-web.jumper.mnke.org}`)" - "traefik.http.routers.calibre-web.entrypoints=websecure" - "traefik.http.routers.calibre-web.tls=true" - "traefik.http.services.calibre-web.loadbalancer.server.port=8083" - "traefik.docker.network=traefik" deploy: resources: limits: cpus: '0.25' memory: 512M reservations: cpus: '0.1' memory: 128M