Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep data directory ownership based on PGID and PUID #623

Open
AkashRajpurohit opened this issue Feb 1, 2024 · 1 comment
Open

Keep data directory ownership based on PGID and PUID #623

AkashRajpurohit opened this issue Feb 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@AkashRajpurohit
Copy link

Is there any way to maintain the same ownership of the data directory as supplied via the PGID and PUID environment variables?

Currently, it changes ownership to www-data user, I would like it to retain the current user's ownership.

I am trying to automate the setup via ansible and since when the container runs it modifies the ownership, the playbook does not stay idempotent and fails since the ownership is different now.

Docker compose file is the similar as suggested in the setup guide.

@sissbruecker
Copy link
Owner

Changing the defaults is probably not a good option, so maybe this could be made configurable. The only workaround I can think of is to mount custom files into the container for everything that references the user (uwsgi.ini, bootstrap.sh, supervisord.conf).

@sissbruecker sissbruecker added the enhancement New feature or request label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants