How can I change permissions to a volume?

I have to keep 777 for a folder which is the persistent volume. Since volumes are not mounted in build time how can I change the mounted folder permission.
9 Replies
Percy
Percy9mo ago
Project ID: 2a4ccb82-5166-478f-8ad3-5abadca54feb
kmskrishna
kmskrishna9mo ago
2a4ccb82-5166-478f-8ad3-5abadca54feb
Brody
Brody9mo ago
volumes are mounted as root, instead run the app as root, im most cases its as easy as setting a RAILWAY_RUN_UID service variable to 0
kmskrishna
kmskrishna9mo ago
That is what I ended up doing. like I had to configure php-fpm user and group as root
Brody
Brody9mo ago
perfect
kmskrishna
kmskrishna9mo ago
is running the app as root a preferred way of doing things? any security implications?
Brody
Brody9mo ago
i mean no its generally not preferred, but the volumes are mounted as root, so theres not a whole lot we can do about that
kmskrishna
kmskrishna9mo ago
Is it something that is going to change in near future?
Brody
Brody9mo ago
im not sure tbh
Want results from more Discord servers?
Add your server