PostgreSQL Configuration
monetr is migrating from using this configuration to a new config layout, this configuration will continue to work for the next few releases but will eventually stop working and require configuration files to be updated. If you are configuring your server via environment variables you should be fine.
See Database Configuration for more details.
monetr's primary database is PostgreSQL and is required in order for monetr to run. monetr also uses PostgreSQL as a
basic pub-sub system via LISTEN and NOTIFY commands.
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.
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: