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
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.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
No project ID was provided. Closing thread.
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
it shows which service it is connected to
you can not attach a volume to multiple services
but i cant add more services
why?
because that's not something the platform supports at this time
that's a super-basic feature
oh my god
not quite
at a high level it definitely seems basic, but at a low level there are many challenges
from an implementation standpoint maybe but from an usage standpoint it is absolutely basic
none of which are my concern ngl
implementation is all that matters here
for you maybe
but not for your end users
they don't need to be, correct, but that doesn't change the fact of the matter unfortunately
ok just to prevent an xy problem
i'm trying to move my docker-compose to railway
it's something we will support in the future for sure
and i'm trying to set up prometheus, tempo and grafana
in my current setup i have a volume where i store the configs
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
you could ship the config files inside of the images
you mean i should build an image and use it here?
the bigger problem is that railway doesn't list the image config options
why does it need to?
so that i can set them
what do you want to see?
the possible options i guess
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
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?
its in the service settings
there is "custom startup command" but it doesn't work
just vcrashes the service
if i copy/paste "command" from my docker-compose file
you are likely using the wrong command, please see the docs for this - https://docs.railway.app/guides/start-command#configure-the-start-command
i copy-pasted it from here verbatim
tried with and without quotes
please read the docs i linked
ok
this is horrible ux so far
i might be better off with aws instead 😒