From 2080125b3ac939eb33b1e8ebf3ae2f214213086f Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 30 Nov 2021 12:35:37 +0100 Subject: [PATCH] feat: init --- README.md | 20 ++++++++++---------- compose.yml | 23 +++++++++++++++-------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 39637e8..edebe5c 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,18 @@ # calibre-web -TODO +> Calibre-Web is a web app providing a clean interface for browsing, reading +> and downloading eBooks using an existing Calibre database. -* **Category**: -* **Status**: -* **Image**: -* **Healthcheck**: -* **Backups**: -* **Email**: -* **Tests**: -* **SSO**: +- **Category**: +- **Status**: +- **Image**: [linuxserver/calibre-web](https://hub.docker.com/r/linuxserver/calibre-web) +- **Healthcheck**: +- **Backups**: +- **Email**: +- **Tests**: +- **SSO**: @@ -28,4 +29,3 @@ TODO [`abra`]: https://git.coopcloud.tech/coop-cloud/abra [`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik -cloud/traefik diff --git a/compose.yml b/compose.yml index 662a96c..6609cb6 100644 --- a/compose.yml +++ b/compose.yml @@ -3,7 +3,15 @@ version: "3.8" services: app: - image: nginx:1.19.2 + image: "lscr.io/linuxserver/calibre-web:0.6.14" + environment: + - DOCKER_MODS=linuxserver/calibre-web:calibre + - OAUTHLIB_RELAX_TOKEN_SCOPE=1 + - PGID=1000 + - PUID=1000 + - TZ=Europe/London + volumes: + - books:/books networks: - proxy deploy: @@ -11,16 +19,12 @@ services: condition: on-failure labels: - "traefik.enable=true" - - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" - - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" + - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8083" + - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - ## Redirect from EXTRA_DOMAINS to DOMAIN - #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" - #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" - #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost"] + test: ["CMD", "curl", "-f", "http://localhost:8083"] interval: 30s timeout: 10s retries: 10 @@ -29,3 +33,6 @@ services: networks: proxy: external: true + +volumes: + books: