Skip to content

Commit

Permalink
Add configuration for calibre containers
Browse files Browse the repository at this point in the history
  • Loading branch information
trjohnson19 committed Sep 11, 2023
1 parent 2a2cf86 commit 722c89d
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ AUTHELIA_TELEMETRY_PORT=9959
BAZARR_PORT=6767
BLUEBUBBLES_SERVER_PORT=1234
BLUEBUBBLES_VNC_PORT=5999
CALIBRE_PORT=8080
# CALIBRE_WEB_PORT=8081 # Not currently used
DOZZLE_PORT=8080
DUPEGURU_PORT=5800
FIREFLY_PORT=8080
Expand Down
67 changes: 67 additions & 0 deletions docker-compose-t2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2643,6 +2643,73 @@ services:
# - "traefik.http.routers.plex-rtr.service=plex-svc"
# - "traefik.http.services.plex-svc.loadbalancer.server.port=32400"

calibre:
<<: *common-keys-apps
image: lscr.io/linuxserver/calibre:latest
container_name: calibre
devices:
- /dev/dri:/dev/dri
# ports:
# - $CALIBRE_PORT:$CALIBRE_PORT
# - $CALIBRE_HTTPS_PORT:$CALIBRE_HTTPS_PORT
# - $CALIBRE_WEB_PORT:8081
security_opt:
- seccomp:unconfined # Required for some setups
environment:
<<: *default-tz-puid-pgid
# CLI_ARGS: # Optional
CUSTOM_PORT: $CALIBRE_PORT
# CUSTOM_HTTPS_PORT: $CALIBRE_HTTPS_PORT
# CUSTOM_USER:
# PASSWORD: # Use reverse proxy authentication instead
# SUBFOLDER:
TITLE: Calibre
FM_HOME: /import
START_DOCKER: # Set to FALSE to disable DinD Docker setup
DRI_NODE: /dev/dri/renderD128
volumes:
- $APPDIR/calibre/config:/config
- "$DATADIR/media/Calibre Library:/books"
- $DATADIR/torrents-private/books:/import
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.calibre-rtr.entrypoints=https"
- "traefik.http.routers.calibre-rtr.rule=Host(`calibre.$DOMAINNAME0`)"
- "traefik.http.routers.calibre-rtr.tls.options=tls-opts@file"
- "traefik.http.routers.calibre-rtr.tls=true"
## Middlewares
- "traefik.http.routers.calibre-rtr.middlewares=chain-authelia0@file"
## HTTP Services
- "traefik.http.routers.calibre-rtr.service=calibre-svc"
- "traefik.http.services.calibre-svc.loadbalancer.server.port=$CALIBRE_PORT"

## Calibre-Web - A web app that offers a clean and intuitive interface for browsing, reading, and downloading eBooks using a valid Calibre database
calibre-web:
<<: *common-keys-apps
image: lscr.io/linuxserver/calibre-web:latest
container_name: calibre-web
# ports:
# - $CALIBRE_WEB_PORT:8083
environment:
<<: *default-tz-puid-pgid
DOCKER_MODS: linuxserver/mods:universal-calibre
volumes:
- $APPDIR/calibre-web/config:/config
- "$DATADIR/media/Calibre Library:/books"
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.calibre-web-rtr.entrypoints=https"
- "traefik.http.routers.calibre-web-rtr.rule=Host(`calibre-web.$DOMAINNAME0`)"
- "traefik.http.routers.calibre-web-rtr.tls.options=tls-opts@file"
- "traefik.http.routers.calibre-web-rtr.tls=true"
## Middlewares
- "traefik.http.routers.calibre-web-rtr.middlewares=chain-no-auth@file"
## HTTP Services
- "traefik.http.routers.calibre-web-rtr.service=calibre-web-svc"
- "traefik.http.services.calibre-web-svc.loadbalancer.server.port=8083"


############################# MEDIA FILE MANAGEMENT

Expand Down

0 comments on commit 722c89d

Please sign in to comment.