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:
Márk Gulyás
2025-09-05 23:00:48 -06:00
committed by GitHub
co-authored by Aditya Chandel
parent af622d9f75
commit 7604fa7fa0
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ services:
# image: ghcr.io/booklore-app/booklore:latest
container_name: booklore
environment:
- PUID=1000
- PGID=1000
- USER_ID=0 # Modify this if the volume's ownership is not root
- GROUP_ID=0 # Modify this if the volume's ownership is not root
- TZ=Etc/UTC
- DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore # Only modify this if you're familiar with JDBC and your database setup
- DATABASE_USERNAME=booklore # Must match MYSQL_USER defined in the mariadb container