Multipul volumes
random_username
PROOP

5 months ago

I need a way to attach multiple volumes to my image, example case - hyperdx has a image all-in-one which providers clickhouse + hyperdx + mongo, but the clickhouse data + mongodb needs to be persistent and are in separate folders.

Solved

17 Replies

noahd
EMPLOYEE

5 months ago

Currently it is not possible to attatch multiple volumes to a single Railway service.


oscarnow
PRO

5 months ago

You could have 1 volume which contains multiple folders


random_username
PROOP

5 months ago

Can't here's the example:

docker run \
  -p 8080:8080 \
  -p 4317:4317 \
  -p 4318:4318 \
  -v "$(pwd)/.volumes/db:/data/db" \
  -v "$(pwd)/.volumes/ch_data:/var/lib/clickhouse" \
  -v "$(pwd)/.volumes/ch_logs:/var/log/clickhouse-server" \
  docker.hyperdx.io/hyperdx/hyperdx-all-in-one

random_username
PROOP

5 months ago

How is that done, csv folders?


oscarnow
PRO

5 months ago

I'm pretty sure that a volume is just a folder that persists. So you could just add folders in that folder/volume and use those

1417239454547972000


random_username
PROOP

5 months ago

I can't because I can't control where they're mounted e.g /data/db + /var/lib/clickhouse = seperated folders, if they're both under /var/lib/db + /var/lib/clickhouse i could just do /var/lib, but i can't change the locations


oscarnow
PRO

5 months ago

ah i see


random_username
PROOP

5 months ago

I might have to change something in my dockerfile and make a symlink between the paths in this case then 🙁


oscarnow
PRO

5 months ago

afaik, it's not currently supported to have multiple volumes per service, so your options either are:

  • split into multiple services

  • change the location of the folders to 1 big volume folder

  • try something with symlinks


oscarnow
PRO

5 months ago

maybe you could just volume the whole thing?


oscarnow
PRO

5 months ago

if you don't have updates


random_username
PROOP

5 months ago

was going to go for the volume the whole thing option but you can't do / 🤣


oscarnow
PRO

5 months ago

😢


oscarnow
PRO

5 months ago

nvm then


random_username
PROOP

5 months ago

Thanks for the help anyway 🦾



noahd
EMPLOYEE

5 months ago

!s


Status changed to Solved noahd 5 months ago


Loading...