mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
Allow running as non-root #343
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lucasstinis on 12/17/2025
Thanks for sharing your project, it's really useful!
In regards to security, it would be great to be able to run the container as a non-root user, settable through e.g. compose ->
user: "1010:1010". As far as I can tell, the main reason the container requires running as root is to create its file structure at startup, which should be a one-time step. It would be preferable to do this through a separate setup script or just manually by the user when setting up Postgresus for the fist time.Solving it by doing
cap_drop: all/cap_add: ...and always having to run as root doesn't feel "clean" as it's not a security best practice.Hope this suggestion makes sense and you decide to implement it! Thanks and keep up the great work.
Cheers