Skip to content
ShipVoice

This page is from the earlier docs. It is kept for reference while we rewrite it, and parts may be out of date. Go to the current docs

Database and storage

ShipVoice Pro keeps everything in one Postgres database, and keeps files such as recordings and uploads in a storage bucket.

The defaults

You do not have to set anything up.

  • On your computer, shipvoice init runs Postgres and file storage in Docker.
  • On Railway, the deploy makes a Postgres with pgvector and a bucket for you.

Bring your own Postgres

Use this when you already pay for a managed Postgres, or want backups you control.

  • During uv run shipvoice init, paste your database URL when it asks. Press Enter to skip.
  • Or set SHIPVOICE_DATABASE_URL in the .env file at the top of the code before you run init or deploy.

Init checks that it can connect and that the database has pgvector, which Knowledge needs to search.

Bring your own bucket

Any S3 style bucket works. Set these in the .env file:

VariableWhat it is
KNOWLEDGE_BUCKET_ENDPOINTThe bucket service’s address
KNOWLEDGE_BUCKET_NAMEThe bucket’s name
KNOWLEDGE_BUCKET_REGIONIts region
KNOWLEDGE_BUCKET_KEYThe access key
KNOWLEDGE_BUCKET_SECRETThe secret key
KNOWLEDGE_BUCKET_ADDRESSINGpath or virtual

Back up

The Postgres that Railway makes for you has no point in time recovery. Take your own backups, or bring a managed Postgres that has them.

Start over

On your computer, uv run shipvoice reset wipes the database so you can start again. Add --all to also delete the .env file and its keys. There is no undo.