Add booklore compose file
This commit is contained in:
parent
84c238b44a
commit
cb6fc8f3b9
66
booklore/compose.yaml
Normal file
66
booklore/compose.yaml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
services:
|
||||
booklore:
|
||||
image: booklore/booklore:v1.17.0
|
||||
container_name: booklore
|
||||
volumes:
|
||||
# Config
|
||||
- $APPDATA/booklore/data:/app/data
|
||||
# Media
|
||||
- $MEDIADIR/books:/books
|
||||
- $MEDIADIR/comics:/comics
|
||||
# - $MEDIADIR/bookdrop:/bookdrop
|
||||
environment:
|
||||
USER_ID: $PUID
|
||||
GROUP_ID: $PGID
|
||||
TZ: $TZ
|
||||
DATABASE_URL: $BOOKLORE_DB_URL
|
||||
DATABASE_USERNAME: $BOOKLORE_DB_USER
|
||||
DATABASE_PASSWORD: $BOOKLORE_DB_PASSWORD
|
||||
BOOKLORE_PORT: 6060
|
||||
ports:
|
||||
- "6060:6060"
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.http.routers.booklore.rule=Host(`booklore.${LOCAL_DOMAIN}`)"
|
||||
# - "traefik.http.routers.booklore.entrypoints=https"
|
||||
# - "traefik.http.routers.booklore.tls=true"
|
||||
# - "traefik.http.services.booklore.loadbalancer.server.port=6060"
|
||||
# networks:
|
||||
# - proxy
|
||||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: wget -q -O - http://localhost:6060/api/v1/healthcheck
|
||||
interval: 60s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
timeout: 10s
|
||||
restart: unless-stopped
|
||||
|
||||
mariadb:
|
||||
image: lscr.io/linuxserver/mariadb:11.4.5
|
||||
container_name: mariadb
|
||||
volumes:
|
||||
# Config
|
||||
- $APPDATA/booklore/mariadb/config:/config
|
||||
environment:
|
||||
PUID: $PUID
|
||||
PGID: $PGID
|
||||
TZ: $TZ
|
||||
MYSQL_ROOT_PASSWORD: $BOOKLORE_MYSQL_ROOT_PASSWORD
|
||||
MYSQL_DATABASE: $BOOKLORE_MYSQL_DATABASE
|
||||
MYSQL_USER: $BOOKLORE_DB_USER
|
||||
MYSQL_PASSWORD: $BOOKLORE_DB_PASSWORD
|
||||
# networks:
|
||||
# - proxy
|
||||
healthcheck:
|
||||
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
restart: unless-stopped
|
||||
|
||||
# networks:
|
||||
# proxy:
|
||||
# external: true
|
||||
Loading…
Reference in a new issue