added calibre server
This commit is contained in:
@@ -12,7 +12,7 @@ services:
|
||||
# - DOCKER_MODS=linuxserver/mods:universal-calibre #only x64
|
||||
# - OAUTHLIB_RELAX_TOKEN_SCOPE=1 #for google o-auth
|
||||
volumes:
|
||||
- ./data:/config
|
||||
- ./data/calibre-web:/config
|
||||
- ./library:/books
|
||||
networks:
|
||||
- proxy
|
||||
@@ -22,18 +22,46 @@ services:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=proxy"
|
||||
|
||||
- "traefik.http.routers.calibre.entrypoints=http"
|
||||
- "traefik.http.routers.calibre.rule=Host(`read.local.zernis.ch`)"
|
||||
- "traefik.http.middlewares.calibre-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.calibre.middlewares=calibre-https-redirect"
|
||||
- "traefik.http.routers.calibre-secure.entrypoints=https"
|
||||
- "traefik.http.routers.calibre-secure.rule=Host(`read.local.zernis.ch`)"
|
||||
- "traefik.http.routers.calibre-secure.tls=true"
|
||||
- "traefik.http.routers.calibre-secure.service=calibre"
|
||||
- "traefik.http.services.calibre.loadbalancer.server.port=8083"
|
||||
- "traefik.http.routers.calibre-web.entrypoints=http"
|
||||
- "traefik.http.routers.calibre-web.rule=Host(`read.local.zernis.ch`)"
|
||||
- "traefik.http.middlewares.calibre-web-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.calibre-web.middlewares=calibre-web-https-redirect"
|
||||
- "traefik.http.routers.calibre-web-secure.entrypoints=https"
|
||||
- "traefik.http.routers.calibre-web-secure.rule=Host(`read.local.zernis.ch`)"
|
||||
- "traefik.http.routers.calibre-web-secure.tls=true"
|
||||
- "traefik.http.routers.calibre-web-secure.service=calibre-web"
|
||||
- "traefik.http.services.calibre-web.loadbalancer.server.port=8083"
|
||||
# - 'traefik.http.routers.abshelf-secure.middlewares=authelia@docker' # authelia middleware
|
||||
|
||||
|
||||
calibre:
|
||||
image: lscr.io/linuxserver/calibre:latest
|
||||
container_name: calibre
|
||||
environment:
|
||||
- PUID=${UID}
|
||||
- PGID=${GID}
|
||||
- TZ=${TZ}}
|
||||
- PASSWORD=${PASS}
|
||||
# - CLI_ARGS= #optional
|
||||
volumes:
|
||||
- ./data/calibre-server:/config
|
||||
restart: unless-stopped
|
||||
|
||||
# Traefik Labels
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=proxy"
|
||||
|
||||
- "traefik.http.routers.calibre-srv.entrypoints=http"
|
||||
- "traefik.http.routers.calibre-srv.rule=Host(`calibre.local.zernis.ch`)"
|
||||
- "traefik.http.middlewares.calibre-srv-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.calibre-srv.middlewares=calibre-srv-https-redirect"
|
||||
- "traefik.http.routers.calibre-srv-secure.entrypoints=https"
|
||||
- "traefik.http.routers.calibre-srv-secure.rule=Host(`calibre.local.zernis.ch`)"
|
||||
- "traefik.http.routers.calibre-srv-secure.tls=true"
|
||||
- "traefik.http.routers.calibre-srv-secure.service=calibre-srv"
|
||||
- "traefik.http.services.calibre-srv.loadbalancer.server.port=8080"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user