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