Browsing and modifying volumes

I have deployed a docker image and attached a volume to it. How can I browse files in that volume? How to upload or modify files there?

Solved$10 Bounty

Pinned Solution

I have found that I can simply use git to manage files easier and better. And, since I have hosted my Git instance on Railway, I can use that, too.

18 Replies

Railway
BOT

a year ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Railway

Hey there! We've found the following might help you get unblocked faster: - [🧵 Regarding Volumes](https://station.railway.com/questions/regarding-volumes-3f9df81d) - [🧵 browse files on a volume?](https://station.railway.com/questions/browse-files-on-a-volume-d3481b4f) - [🧵 Using a temporary volume](https://station.railway.com/questions/using-a-temporary-volume-52204d54) - [🧵 How do I browse file in a storage volume?](https://station.railway.com/questions/how-do-i-browse-file-in-a-storage-volume-2dff0788) If you find the answer from one of these, please let us know by solving the thread!

I found mention of file browser services in the docs. What is it exactly? Tell me how to do it. I would prefer a DIY method instead of using 3rd party templates. Another way was using curl but that only allows uploading files from volumes to other places I guess...


a year ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 12 months ago


a year ago

👍


a year ago

Hey there!

Sadly Railway does not have a native file browser.

Your best method is using a community template or a custom solution.

Best,

Noah.


case
PRO

a year ago

@khalidrafi you can use railway ssh to sign in to your app's running instance, and use Unix commands like ls to see which files are there. Depending on which framework you are using, you may be able to add web-based file browsing via an off-the-shelf open source library? Be very careful though, as it's easy to overlook security issues with file browsing like this.


a year ago

@khalidrafi you should looking for a client to access your database. There are options like Tableplus to DBeaver


case
PRO

a year ago

@devnullone he didn't mention a database, he mentioned needing to browse files


noahd

Hey there! Sadly Railway does not have a native file browser. Your best method is using a community template or a custom solution. Best, Noah.

Which template is best? I'm using Gitea with Docker. I would prefer making a template on my own. So, I'd really appreciate instructions on how to do that!


khalidrafi

Which template is best? I'm using Gitea with Docker. I would prefer making a template on my own. So, I'd really appreciate instructions on how to do that!

a year ago

Well, creating a file browsing template is quite complex. You would need to from the ground up create a system to view, edit, delete files.

If you choose one of the templates, you are completely self hosting it. Nobody but you has access to it and the code/config is all open sourced for you to see.


noahd

Well, creating a file browsing template is quite complex. You would need to from the ground up create a system to view, edit, delete files. If you choose one of the templates, you are completely self hosting it. Nobody but you has access to it and the code/config is all open sourced for you to see.

a year ago

Nobody but you has access to it with configuration. Be mindful of what template you use and configure it as the template instructs.


case
PRO

a year ago

@khalidrafi - can you explain what problem you are trying to solve? You can browse the files manually via railway ssh but this may not be what you're actually looking to do?


case

@khalidrafi - can you explain what problem you are trying to solve? You can browse the files manually via `railway ssh` but this may not be what you're actually looking to do?

I want to browse and modify files


case
PRO

a year ago

@khalidrafi since Railway doesn't have a built-in file browser, have you looked into using one alongside whatever framework or Dockerfile you are using?


khalidrafi

I want to browse and modify files

a year ago

As I said, I suggest using a file browser template.


noahd

As I said, I suggest using a file browser template.

Which one would be best? What does everyone use?


khalidrafi

Which one would be best? What does everyone use?

a year ago

I believe I see people using: https://railway.com/deploy/Nan7Bs frequently. However, you might be able to browse github for something that would work best for you.


noahd

I believe I see people using: <https://railway.com/deploy/Nan7Bs> frequently. However, you might be able to browse github for something that would work best for you.

That says "44% success in recent deployments".


I have found that I can simply use git to manage files easier and better. And, since I have hosted my Git instance on Railway, I can use that, too.


Status changed to Solved brody 12 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...