How do I attach a volume to a service?
addamsson
PROOP

2 years ago

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?

54 Replies

2 years 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


2 years ago

everything you need is under the volume settings


addamsson
PROOP

2 years ago

i can't seem to find it


addamsson
PROOP

2 years ago

in which menu is this?


addamsson
PROOP

2 years ago

i have a single volume that i want to attach to 2 services but i can only detach volumes


addamsson
PROOP

2 years ago

there is no volume settings in a service


addamsson
PROOP

2 years ago

it shows which service it is connected to

1281612127378997248


2 years ago

you can not attach a volume to multiple services


addamsson
PROOP

2 years ago

but i cant add more services


addamsson
PROOP

2 years ago

why?


2 years ago

because that's not something the platform supports at this time


addamsson
PROOP

2 years ago

that's a super-basic feature


addamsson
PROOP

2 years ago

oh my god


2 years ago

not quite


2 years ago

at a high level it definitely seems basic, but at a low level there are many challenges


addamsson
PROOP

2 years ago

from an implementation standpoint maybe but from an usage standpoint it is absolutely basic


addamsson
PROOP

2 years ago

none of which are my concern ngl


2 years ago

implementation is all that matters here


addamsson
PROOP

2 years ago

for you maybe


addamsson
PROOP

2 years ago

but not for your end users


2 years ago

they don't need to be, correct, but that doesn't change the fact of the matter unfortunately


addamsson
PROOP

2 years ago

ok just to prevent an xy problem


addamsson
PROOP

2 years ago

i'm trying to move my docker-compose to railway


2 years ago

it's something we will support in the future for sure


addamsson
PROOP

2 years ago

and i'm trying to set up prometheus, tempo and grafana


addamsson
PROOP

2 years ago

in my current setup i have a volume where i store the configs


addamsson
PROOP

2 years ago

1281612910887440535


addamsson
PROOP

2 years 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


2 years ago

you could ship the config files inside of the images


addamsson
PROOP

2 years ago

you mean i should build an image and use it here?


addamsson
PROOP

2 years ago

the bigger problem is that railway doesn't list the image config options

1281613275640893523


2 years ago

why does it need to?


addamsson
PROOP

2 years ago

so that i can set them


addamsson
PROOP

2 years ago

1281613386907385886


2 years ago

what do you want to see?


addamsson
PROOP

2 years ago

the possible options i guess


2 years 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
PROOP

2 years ago

although tempo is a bad example as it works from a config file


addamsson
PROOP

2 years ago

how do I set the "command" variable for example?


addamsson
PROOP

2 years ago

i don't see the option


addamsson
PROOP

2 years ago

it is not an env var


addamsson
PROOP

2 years ago

or is it?


2 years ago

its in the service settings


addamsson
PROOP

2 years ago

there is "custom startup command" but it doesn't work


addamsson
PROOP

2 years ago

just vcrashes the service


addamsson
PROOP

2 years ago

if i copy/paste "command" from my docker-compose file


2 years ago

you are likely using the wrong command, please see the docs for this -


addamsson
PROOP

2 years ago

i copy-pasted it from here verbatim


addamsson
PROOP

2 years ago

1281617795838378026


addamsson
PROOP

2 years ago

tried with and without quotes


2 years ago

please read the docs i linked


addamsson
PROOP

2 years ago

ok


addamsson
PROOP

2 years ago

this is horrible ux so far


addamsson
PROOP

2 years ago

i might be better off with aws instead 😒


Welcome!

Sign in to your Railway account to join the conversation.

Loading...