How do I attach a volume to a service?

I've been trying to run a File browser instance (as was suggested here) but I can't figure out how to attach a specific volume to it. It always deploys with its own volume which I can delete, but I can't seem to drag'n'drop or configure the volume nor the file browser to point into the right direction. What am I doing wrong?
37 Replies
Percy
Percy3mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Adam
Adam3mo ago
Click on the volume attached to the filebrowser, disconnect it, click on the volume that you’d like to view, connect it to the filebrowser service everything you need is under the volume settings
Percy
Percy3mo ago
No project ID was provided. Closing thread.
addamsson
addamssonOP3mo ago
i can't seem to find it in which menu is this? i have a single volume that i want to attach to 2 services but i can only detach volumes there is no volume settings in a service
addamsson
addamssonOP3mo ago
it shows which service it is connected to
No description
Brody
Brody3mo ago
you can not attach a volume to multiple services
addamsson
addamssonOP3mo ago
but i cant add more services why?
Brody
Brody3mo ago
because that's not something the platform supports at this time
addamsson
addamssonOP3mo ago
that's a super-basic feature oh my god
Brody
Brody3mo ago
not quite at a high level it definitely seems basic, but at a low level there are many challenges
addamsson
addamssonOP3mo ago
from an implementation standpoint maybe but from an usage standpoint it is absolutely basic none of which are my concern ngl
Brody
Brody3mo ago
implementation is all that matters here
addamsson
addamssonOP3mo ago
for you maybe but not for your end users
Brody
Brody3mo ago
they don't need to be, correct, but that doesn't change the fact of the matter unfortunately
addamsson
addamssonOP3mo ago
ok just to prevent an xy problem i'm trying to move my docker-compose to railway
Brody
Brody3mo ago
it's something we will support in the future for sure
addamsson
addamssonOP3mo ago
and i'm trying to set up prometheus, tempo and grafana in my current setup i have a volume where i store the configs
addamsson
addamssonOP3mo ago
No description
addamsson
addamssonOP3mo ago
i tried to set up all 3 without these but it seems that i can't configure the docker images as railway doesn't let me
Brody
Brody3mo ago
you could ship the config files inside of the images
addamsson
addamssonOP3mo ago
you mean i should build an image and use it here?
addamsson
addamssonOP3mo ago
the bigger problem is that railway doesn't list the image config options
No description
Brody
Brody3mo ago
why does it need to?
addamsson
addamssonOP3mo ago
so that i can set them
addamsson
addamssonOP3mo ago
No description
Brody
Brody3mo ago
what do you want to see?
addamsson
addamssonOP3mo ago
the possible options i guess
Brody
Brody3mo ago
image is shown in the service settings command is the start command in the service settings volume is a volume ports are shown in the service settings
addamsson
addamssonOP3mo ago
although tempo is a bad example as it works from a config file how do I set the "command" variable for example? i don't see the option it is not an env var or is it?
Brody
Brody3mo ago
its in the service settings
addamsson
addamssonOP3mo ago
there is "custom startup command" but it doesn't work just vcrashes the service if i copy/paste "command" from my docker-compose file
Brody
Brody3mo ago
you are likely using the wrong command, please see the docs for this - https://docs.railway.app/guides/start-command#configure-the-start-command
addamsson
addamssonOP3mo ago
i copy-pasted it from here verbatim
addamsson
addamssonOP3mo ago
No description
addamsson
addamssonOP3mo ago
tried with and without quotes
Brody
Brody3mo ago
please read the docs i linked
addamsson
addamssonOP3mo ago
ok this is horrible ux so far i might be better off with aws instead 😒
Want results from more Discord servers?
Add your server