mirror of
https://github.com/adityachandelgit/BookLore.git
synced 2026-02-17 18:57:40 +01:00
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>
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
BOOKLORE_IMAGE_TAG=latest
|
||||
|
||||
# User and Timezone Settings
|
||||
# PUID and PGID define the user/group running the container.
|
||||
# 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.
|
||||
PUID=1000 # Default user ID (Check with `id -u` on Linux/Mac)
|
||||
PGID=1000 # Default group ID (Check with `id -g` on Linux/Mac)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user