58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
services:
|
|
librum:
|
|
image: ghcr.io/librum-reader/librum-server:latest
|
|
hostname: librum
|
|
container_name: librum
|
|
ports:
|
|
- 5000:5000
|
|
networks:
|
|
- librum
|
|
volumes:
|
|
- librum:/var/lib/librum-server/librum_storage
|
|
environment:
|
|
- JWTValidIssuer=admin
|
|
- JWTKey=ckw*4j8YJ*fcCPke
|
|
- SMTPEndpoint=pro1.mail.ovh.net:587
|
|
- SMTPUsername=admin@delmar.bzh
|
|
- SMTPPassword=qmPAzYgJWQqaY&zo3cXhjhVD%agcLZG5
|
|
- SMTPMailFrom=admin@delmar.bzh
|
|
- DBConnectionString=Server=mariadb;port=3306;Database=librum;Uid=librum;Pwd=mariadb;
|
|
- AdminEmail=admin@delmar.bzh
|
|
- AdminPassword=Z2Mi&S5krN@P9P
|
|
#- OpenAIToken= # Optional. Generate here: https://platform.openai.com/api-keys
|
|
restart: unless-stopped
|
|
depends_on:
|
|
librum_db:
|
|
condition: service_healthy
|
|
|
|
librum_db:
|
|
image: mariadb:latest
|
|
hostname: mariadb
|
|
container_name: librum_db
|
|
networks:
|
|
- librum
|
|
volumes:
|
|
- librum_db:/var/lib/mysql
|
|
environment:
|
|
- MARIADB_USER=librum
|
|
- MARIADB_PASSWORD=mariadb
|
|
- MARIADB_DATABASE=librum
|
|
- MARIADB_ROOT_PASSWORD=mariadb
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "mariadb-admin", "ping", "-u", "librum", "-p'mariadb'", "-h", "localhost"]
|
|
interval: 20s
|
|
timeout: 40s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
networks:
|
|
librum:
|
|
name: "librum"
|
|
|
|
volumes:
|
|
librum:
|
|
name: "librum"
|
|
librum_db:
|
|
name: "librum_db"
|