feat: allow modifying mariadb connection

This commit is contained in:
Oleh Astappiev
2025-04-19 14:09:13 +02:00
committed by Aditya Chandel
parent edb31b77ff
commit 5068b9bae4
4 changed files with 31 additions and 8 deletions

View File

@@ -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.

View File

@@ -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