From 5d4f7a3a0b891535516e057370a7e0bc0a8532a1 Mon Sep 17 00:00:00 2001 From: dgloukhman <57081330+dgloukhman@users.noreply.github.com> Date: Thu, 8 Jan 2026 23:17:05 +0100 Subject: [PATCH] feat(service): add booklore template (#7838) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 🏔️ Peak <122374094+peaklabs-dev@users.noreply.github.com> --- public/svgs/booklore.svg | 4 +++ templates/compose/booklore.yaml | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 public/svgs/booklore.svg create mode 100644 templates/compose/booklore.yaml diff --git a/public/svgs/booklore.svg b/public/svgs/booklore.svg new file mode 100644 index 000000000..cd8230fa2 --- /dev/null +++ b/public/svgs/booklore.svg @@ -0,0 +1,4 @@ + + + + diff --git a/templates/compose/booklore.yaml b/templates/compose/booklore.yaml new file mode 100644 index 000000000..fddde8de0 --- /dev/null +++ b/templates/compose/booklore.yaml @@ -0,0 +1,48 @@ +# documentation: https://booklore.org/docs/getting-started +# slogan: Booklore is an open-source library management system for your digital book collection. +# tags: media, books, kobo, epub, ebook, KOreader +# logo: svgs/booklore.svg +# port: 80 + +services: + booklore: + image: booklore/booklore:v1.16.5 + environment: + - SERVICE_URL_BOOKLORE_80 + - USER_ID=${BOOKLORE_USER_ID:-0} + - GROUP_ID=${BOOKLORE_GROUP_ID:-0} + - TZ=${TZ:-UTC} + - DATABASE_URL=jdbc:mariadb://mariadb:3306/${MARIADB_DATABASE:-booklore-db} + - DATABASE_USERNAME=${SERVICE_USER_MARIADB} + - DATABASE_PASSWORD=${SERVICE_PASSWORD_MARIADB} + - BOOKLORE_PORT=80 + volumes: + - booklore-data:/app/data + - booklore-books:/books + - type: bind + source: ~/booklore + target: /bookdrop + is_directory: true + healthcheck: + test: "wget --no-verbose --tries=1 --spider http://localhost/login || exit 1" + interval: 10s + timeout: 5s + retries: 10 + depends_on: + mariadb: + condition: service_healthy + + mariadb: + image: mariadb:12 + environment: + - MARIADB_USER=${SERVICE_USER_MARIADB} + - MARIADB_PASSWORD=${SERVICE_PASSWORD_MARIADB} + - MARIADB_ROOT_PASSWORD=${SERVICE_PASSWORD_MARIADBROOT} + - MARIADB_DATABASE=${MARIADB_DATABASE:-booklore-db} + volumes: + - mariadb-data:/var/lib/mysql + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + interval: 10s + timeout: 5s + retries: 10