mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
add BookLore template with Docker Compose setup (#259)
Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c634c2cb31
commit
b3348e6949
39
blueprints/booklore/docker-compose.yml
Normal file
39
blueprints/booklore/docker-compose.yml
Normal 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: {}
|
||||
BIN
blueprints/booklore/image.png
Normal file
BIN
blueprints/booklore/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
24
blueprints/booklore/template.toml
Normal file
24
blueprints/booklore/template.toml
Normal 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]]
|
||||
13
meta.json
13
meta.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user