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 name | Accepted values |
|---|---|
| APP_DB_TYPE | mysql or postgres |
| APP_DB_HOST | Database host URL |
| APP_DB_PORT | Database port |
| APP_DB_DATABASE | Database name |
| APP_DB_USERNAME | Database username |
| APP_DB_PASSWORD | Database user password |
| APP_DB_SCHEMA | Database schema (Postgres only) |
| APP_DB_LOGGING | Whether to log internal queries (queries DataRamen performs as part of its operations) |
Follow this guide on how to update environment variables.