Skip to content
Read-only view of a live volume within one replica
nexpilot333
OP

27 minutes ago

Can two unprivileged processes in the same Railway replica use the same live volume so the writer retains read-write access and the checker has a kernel-enforced read-only view with no writable path to that volume? The checker also needs visibility of the writer’s PID and file-lock metadata. Both run as UID/GID 10001:10001 with zero capabilities. If supported, which configuration provides this and is it reapplied after a process restart and a deployment replacement?

Awaiting User Response

1 Reply

Railway
BOT

26 minutes ago

We can't confirm a supported way to set this up. A volume is attached to a service at one mount path, and inside the container that path is a directory your service can read and write. We have no source showing a setting that adds a second read-only mount of the same volume or a per-process read-only view, so we can't name a configuration that would do this or say how it behaves after a restart or a deployment replacement.

Volumes are mounted as root when the container starts. They aren't mounted during build or pre-deploy, and they aren't overlays. Images that run as a non-root UID can run into permission errors on the volume, and the documented fix is setting RAILWAY_RUN_UID=0 (volume reference), which would not fit your zero-capability UID 10001 setup. We also stop one deployment before the next one mounts a volume, so two deployments never share it at the same time. Before you depend on this design, test it in a separate environment.


Status changed to Awaiting User Response Railway • 26 minutes ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...