Files
booklore/example-docker/.env
Márk Gulyás 7604fa7fa0 Adding USER_ID and GROUP_ID to specify permission without making breaking change (#882)
* fixing permissions to be able to run springboot with given UID and GID

* Adding USER_ID and GROUP_ID to specify permission without making breaking change

* move su exec to start.sh

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-09-05 23:00:48 -06:00

32 lines
1.7 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Docker Image Version
# This determines which version of the Booklore image to pull from GitHub Container Registry (GHCR).
# Use "latest" for the most recent version or specify a tag like "v1.0.0".
BOOKLORE_IMAGE_TAG=latest
# User and Timezone Settings
# USER_ID and GROUP_ID define the user/group running the backend service.
# Avoid using "user" property because system won't work with it.
# TZ sets the timezone for correct time-related operations.
USER_ID=0 # Default root user ID (Check with `id -u` on Linux/Mac)
GROUP_ID=0 # Default root group ID (Check with `id -g` on Linux/Mac)
TZ=Etc/UTC # Change this to your timezone (e.g., America/New_York, Asia/Kolkata)
# Database Credentials (Replace with a secure password)
# This password is used by MariaDB. Make sure to keep it secure.
MYSQL_ROOT_PASSWORD=super_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.
# Replace "/path/to/..." with actual directories on your system.
BOOKLORE_DATA_PATH=/path/to/booklore/data # Example: /home/user/booklore/data (Stores app-related data)
BOOKLORE_BOOKS_PATH=/path/to/booklore/books # Example: /home/user/booklore/books (Stores book files)
MARIADB_CONFIG_PATH=/path/to/mariadb/config # Example: /home/user/booklore/mariadb/config (Stores database config)
# How to find your correct paths?
# 1. Choose a location where you want to store persistent data.
# 2. Create the required folders if they dont exist.
# 3. Use `pwd` in your terminal inside those directories to get the full path.
# 4. Replace `/path/to/...` above with your actual paths.