Mount files to a volume or container
bert0rm
PROOP

2 years ago

I am trying to setup a service that requires a pem file to be mounted so that the service can read its contents. Is this something that can be done currently or is it planned to be added?

6 Replies

brody
EMPLOYEE

2 years ago

How often would this pem file change?


bert0rm
PROOP

2 years ago

It will not change often


brody
EMPLOYEE

2 years ago

The method I would use is to deploy this template - https://railway.app/template/Nan7Bs

Set USE_VOLUME_ROOT=1 on deploy.

Then upload your file, once done move its volume to your desired service and open the .pem file in code off the volume.


bert0rm
PROOP

2 years ago

Yeah thats a good idea to get things working now but I'd love to create a template of it. Sounds like its currently not supported?


brody
EMPLOYEE

2 years ago

Then you would want to build the functionality into the app as Railway does not currently offer a native filebrowser interface.


bert0rm
PROOP

2 years ago

yeah it's an open source project so I'll have to either fork it and publish my own version or see if they accept a pull request with such a change. Thanks for the info!


Loading...