Skip to content

Configure a custom app DB

In DataRamen, you control where your data is stored. By default, a SQLite database is created on the machine where DataRamen is running.

To configure a database connection, set the following environment variables:

Variable nameAccepted values
APP_DB_TYPEmysql or postgres
APP_DB_HOSTDatabase host URL
APP_DB_PORTDatabase port
APP_DB_DATABASEDatabase name
APP_DB_USERNAMEDatabase username
APP_DB_PASSWORDDatabase user password
APP_DB_SCHEMADatabase schema (Postgres only)
APP_DB_LOGGINGWhether to log internal queries (queries DataRamen performs as part of its operations)

Follow this guide on how to update environment variables.