Skip to content

Database

Claudio supports SQLite and PostgreSQL as database backends.

SQLite is the default and requires no additional setup. The database file is stored at /config/claudio.db by default.

[database]
provider = "sqlite"
sqlite_path = "/config/claudio.db"

Or via environment variables:

Terminal window
CLAUDIO_DB_PROVIDER=sqlite
CLAUDIO_DB_SQLITE_PATH=/config/claudio.db

For larger deployments, you can use PostgreSQL:

[database]
provider = "postgres"
postgres_connection = "Host=localhost;Database=claudio;Username=claudio;Password=secret"

Or via environment variables:

Terminal window
CLAUDIO_DB_PROVIDER=postgres
CLAUDIO_DB_POSTGRES="Host=localhost;Database=claudio;Username=claudio;Password=secret"

See the Installation page for a full Docker Compose example with PostgreSQL.