mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
feat: allow modifying mariadb connection
This commit is contained in:
committed by
Aditya Chandel
parent
edb31b77ff
commit
5068b9bae4
@@ -13,6 +13,9 @@ TZ=Etc/UTC # Change this to your timezone (e.g., America/New_York, Asia/Kolk
|
||||
# Database Credentials (Replace with a secure password)
|
||||
# This password is used by MariaDB. Make sure to keep it secure.
|
||||
MYSQL_ROOT_PASSWORD=your_secure_password
|
||||
MYSQL_DATABASE=booklore
|
||||
MYSQL_USER=booklore
|
||||
MYSQL_PASSWORD=your_secure_password
|
||||
|
||||
# Paths for Docker Volumes (Update these paths as per your system)
|
||||
# These paths store persistent data for Booklore and MariaDB.
|
||||
|
||||
@@ -5,6 +5,10 @@ services:
|
||||
container_name: booklore_server
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- DATABASE_URL=jdbc:mariadb://mariadb:3306/${MYSQL_DATABASE}
|
||||
- DATABASE_USERNAME=${MYSQL_USER}
|
||||
- DATABASE_PASSWORD=${MYSQL_PASSWORD}
|
||||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
@@ -15,7 +19,7 @@ services:
|
||||
- ${BOOKLORE_BOOKS_PATH}:/books
|
||||
|
||||
mariadb:
|
||||
image: lscr.io/linuxserver/mariadb:11.4.5
|
||||
image: lscr.io/linuxserver/mariadb:11.4
|
||||
container_name: booklore_mariadb
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
Reference in New Issue
Block a user