Database Configuration
monetr now configures it's database connection via the database config block. This is to enable more database backends in the near future. The long term goal is for monetr to support (and default to) SQLite as the database backend for new installations. To that end, this is monetr's new method of configuring a database connection for the server.
At the moment this configuration is a no-op, however following the v1.19.0 you will start receiving warnings if this block is not configured. In a following release monetr will switch over to using this config block instead of the PostgreSQL config block that exists today.
PostgreSQL Configuration
Officially monetr supports PostgreSQL version 16 and higher.
monetr watches the certificate files for changes, so certificates can be rotated without restarting the server. New connections to PostgreSQL will use the new certificates right away, and existing connections are replaced with new ones within a few minutes.
The following environment variables map to the following configuration file fields. Each field is documented below.
SQLite Configuration
Coming Soon!
Database Migrations
The provided Docker Compose file will automatically run database migrations on startup as needed. However if you want to
run the migrations manually you can remove the --migrate flag from the serve command in the compose file.
To run database migrations manually run the following command:
To see the current database schema version run the following command: