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
Percy10mo ago
Project ID: 2a4ccb82-5166-478f-8ad3-5abadca54feb
kmskrishna
kmskrishna10mo ago
2a4ccb82-5166-478f-8ad3-5abadca54feb
Brody
Brody10mo 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
kmskrishna10mo ago
That is what I ended up doing. like I had to configure php-fpm user and group as root
Brody
Brody10mo ago
perfect
kmskrishna
kmskrishna10mo ago
is running the app as root a preferred way of doing things? any security implications?
Brody
Brody10mo 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
kmskrishna10mo ago
Is it something that is going to change in near future?
Brody
Brody10mo ago
im not sure tbh
Want results from more Discord servers?
Add your server