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 initruns 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_URLin the.envfile 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:
| Variable | What it is |
|---|---|
KNOWLEDGE_BUCKET_ENDPOINT | The bucket service’s address |
KNOWLEDGE_BUCKET_NAME | The bucket’s name |
KNOWLEDGE_BUCKET_REGION | Its region |
KNOWLEDGE_BUCKET_KEY | The access key |
KNOWLEDGE_BUCKET_SECRET | The secret key |
KNOWLEDGE_BUCKET_ADDRESSING | path 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.