mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
feat(service): add booklore template (#7838)
Co-authored-by: 🏔️ Peak <122374094+peaklabs-dev@users.noreply.github.com>
This commit is contained in:
4
public/svgs/booklore.svg
Normal file
4
public/svgs/booklore.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg width="126" height="126" viewBox="0 0 126 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="#818cf8"/>
|
||||||
|
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 842 B |
48
templates/compose/booklore.yaml
Normal file
48
templates/compose/booklore.yaml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user