10 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.
17 Replies
10 months ago
Currently it is not possible to attatch multiple volumes to a single Railway service.
10 months ago
You could have 1 volume which contains multiple folders
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-one10 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

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
10 months ago
ah i see
I might have to change something in my dockerfile and make a symlink between the paths in this case then 🙁
10 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
10 months ago
maybe you could just volume the whole thing?
10 months ago
if you don't have updates
was going to go for the volume the whole thing option but you can't do / 🤣
10 months ago
😢
10 months ago
nvm then
10 months ago
9 months ago
!s
Status changed to Solved noahd • 10 months ago