add BookLore template with Docker Compose setup (#259)

Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
This commit is contained in:
Jainil Prajapati 🪐
2025-08-02 11:38:42 +05:30
committed by GitHub
parent c634c2cb31
commit b3348e6949
4 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
services:
booklore:
image: ghcr.io/adityachandelgit/booklore-app:${BOOKLORE_IMAGE_TAG}
environment:
- DATABASE_URL=jdbc:mariadb://mariadb:3306/${MYSQL_DATABASE}
- DATABASE_USERNAME=${MYSQL_USER}
- DATABASE_PASSWORD=${MYSQL_PASSWORD}
depends_on:
mariadb:
condition: service_healthy
ports:
- 6060
volumes:
- booklore-data:/app/data
- booklore-books:/books
mariadb:
image: lscr.io/linuxserver/mariadb:latest
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- mariadb-config:/config
restart: unless-stopped
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
volumes:
booklore-data: {}
booklore-books: {}
mariadb-config: {}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,24 @@
[variables]
main_domain = "${domain}"
app_password = "${password:32}"
db_root_password = "${password:32}"
[config]
[[config.domains]]
serviceName = "booklore"
port = 6060
host = "${main_domain}"
[config.env]
BOOKLORE_IMAGE_TAG = "latest"
PUID = "1000"
PGID = "1000"
TZ = "Etc/UTC"
MYSQL_DATABASE = "booklore"
MYSQL_USER = "booklore"
# API Key
MYSQL_PASSWORD = "${app_password}"
# API Key
MYSQL_ROOT_PASSWORD = "${db_root_password}"
[[config.mounts]]

View File

@@ -3138,6 +3138,19 @@
},
"tags": ["analytics"]
},
{
"id": "booklore",
"name": "Booklore",
"version": "latest",
"description": "Booklore is an application for managing and serving book-related data, backed by a MariaDB database.",
"logo": "image.png",
"links": {
"github": "https://github.com/booklore-app/BookLore",
"website": "https://github.com/booklore-app/BookLore",
"docs": "https://github.com/booklore-app/BookLore/tree/develop/docs"
},
"tags": ["books", "library", "database", "mariadb"]
},
{
"id": "scrypted",
"name": "Scrypted",