Is Postgres database's volume persistent in Railway?
maveninfoadvisors-cmd
HOBBYOP

an hour ago

Does a Postgres database's persistent volume in a Railway project survive a redeploy of a separate connected app service in the same project? I want to confirm database data is never wiped or reset when I redeploy the app service that connects to it.

Awaiting User Response

1 Replies

Railway
BOT

an hour ago

Yes. A volume attached to your Postgres service keeps its data between deployments, and your app service runs as its own separate container, so redeploying it does not redeploy or touch the Postgres service or its volume. The data persists because of the volume, so it only applies while one is attached to the Postgres service, mounted at /var/lib/postgresql/data for the Postgres image. Without a volume, the database would write to the container's temporary storage, which is wiped whenever the Postgres service itself redeploys. More detail is in our database and volume docs.


Status changed to Awaiting User Response Railway • about 1 hour ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...