Configuration reference¶
This page lists every backend setting as an environment variable. Each variable has a default. The database URL must point to a real Postgres. docker-compose.yml already does this.
Setting variables with Docker Compose¶
docker-compose.yml passes only these variables from .env to the app container:
POSTGRES_*DINATOS_ALLOW_REGISTRATIONDINATOS_MCP_ENABLEDDINATOS_ADMIN_EMAILDINATOS_ADMIN_PASSWORD
If you do not set DINATOS_ALLOW_REGISTRATION or DINATOS_MCP_ENABLED in .env, Compose passes it as an empty value. Dinatos treats an empty value as unset. The switches in Settings -> Administration then stay in control. Set either variable only to override its switch.
To set any other variable from the table below, do these steps:
Add the variable under
services.backend.environmentindocker-compose.yml.Run
docker compose up -d.
Example:
environment:
DINATOS_SESSION_TTL_DAYS: "14"
DINATOS_CORS_ALLOWED_ORIGINS: '["https://app.example.com"]'
A list value must be JSON.
Variables¶
Variable |
Default |
Meaning |
|---|---|---|
|
|
Postgres connection. Compose builds it from |
|
|
Number of days a login lasts. A logout ends a session at once, so there is little reason to use a shorter time. |
|
unset (registration on) |
Leave it unset, and an administrator turns registration on or off in Settings -> Administration. If you set it to |
|
unset (MCP server on) |
Leave it unset, and an administrator turns the MCP server on or off in Settings -> Administration. The change takes effect at once. If you set it to |
|
unset |
If you set both, Dinatos makes this administrator account on startup when it does not exist. Dinatos never changes an existing account. |
|
|
On the first start with an empty exercise list, Dinatos adds a standard catalog of built-in exercises. |
|
|
Dinatos gives each new account these starter routines: Push, Pull, Legs, Upper body, Lower body and Full body. Each routine is a copy that belongs to the account. This setting needs the exercise catalog. |
|
|
Browser origins that can call the API. You need it only for a web app on a different origin. See CORS. |
|
|
Folder of the built web app. The path is relative to the working directory of the app. The Docker image already contains this folder. If the folder does not exist, only the web app is off. The API still works. |
.env files¶
File |
Used by |
|---|---|
|
|
|
The backend, when you run it directly for development |
For Docker, copy .env.example from the repo root.