Skip to content
Is Postgres database's volume persistent in Railway?
maveninfoadvisors-cmd
OP

2 months 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.

Solved

1 Reply

Railway
BOT

2 months 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 2 months ago


Railway
BOT

a month ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway • about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...