| DB_URL | No | Connection URL to open at startup, e.g. postgres://user@host:5432/db, mongodb://user@host/db, redis://host:6379/0 or sqlite:///data/app.db |
| DB_PASSWORD | No | Password for DB_URL, so it need not be percent-encoded inside the URL Secret. |
| DB_PROFILES | No | JSON object of named connections to switch between, each a URL or {"url", "password"} Secret. |
| DB_DEFAULT_PROFILE | No | Which DB_PROFILES entry to start on |
| DB_CONNECT_TIMEOUT_MS | No | Connection timeout in milliseconds. Defaults to 10000 |
| DB_QUERY_TIMEOUT_MS | No | Server-side query timeout in milliseconds. Defaults to 30000 |
| DB_LOG | No | true logs every tool call, its statements and full output to stderr. Off by default |
| DB_LOG_FILE | No | Log every tool call to this file instead. Implies DB_LOG |
| DB_LOG_DIR | No | Save every tool call as its own JSON file in this folder, permanently. Implies logging |
| DB_LOG_FORMAT | No | pretty (default) or json, one object per line |
| DB_LOG_PORT | No | Serve a live log viewer in the browser on this port. Needs DB_LOG_DIR, DB_LOG or DB_LOG_FILE. No access control |
| DB_LOG_HISTORY | No | Entries the viewer keeps in memory when DB_LOG_DIR is not set. Defaults to 500 |
| MYSQL_HOST | No | Legacy MySQL-only form, kept for drop-in compatibility. Prefer DB_URL |
| MYSQL_USER | No | Legacy MySQL-only form. Prefer DB_URL |
| MYSQL_PASSWORD | No | Legacy MySQL-only form. Prefer DB_URL with DB_PASSWORD Secret. |
| MYSQL_DATABASE | No | Legacy MySQL-only form. Prefer DB_URL |
| DB_URL | No | Connection URL to open at startup, e.g. postgres://user@host:5432/db, mongodb://user@host/db, redis://host:6379/0 or sqlite:///data/app.db. Use host.docker.internal to reach the host |
| DB_PASSWORD | No | Password for DB_URL, so it need not be percent-encoded inside the URL Secret. |
| DB_PROFILES | No | JSON object of named connections to switch between, each a URL or {"url", "password"} Secret. |
| DB_DEFAULT_PROFILE | No | Which DB_PROFILES entry to start on |
| DB_CONNECT_TIMEOUT_MS | No | Connection timeout in milliseconds. Defaults to 10000 |
| DB_QUERY_TIMEOUT_MS | No | Server-side query timeout in milliseconds. Defaults to 30000 |
| DB_LOG | No | true logs every tool call, its statements and full output to stderr. Off by default |
| DB_LOG_FILE | No | Log every tool call to this file instead, on a mounted volume. Implies DB_LOG |
| DB_LOG_DIR | No | Save every tool call as its own JSON file in this folder, on a mounted volume. Implies logging |
| DB_LOG_FORMAT | No | pretty (default) or json, one object per line |
| DB_LOG_PORT | No | Serve a live log viewer on this port (publish it with -p). Needs DB_LOG_DIR, DB_LOG or DB_LOG_FILE. No access control |
| DB_LOG_HISTORY | No | Entries the viewer keeps in memory when DB_LOG_DIR is not set. Defaults to 500 |
| MYSQL_HOST | No | Legacy MySQL-only form, kept for drop-in compatibility. Prefer DB_URL |
| MYSQL_USER | No | Legacy MySQL-only form. Prefer DB_URL |
| MYSQL_PASSWORD | No | Legacy MySQL-only form. Prefer DB_URL with DB_PASSWORD Secret. |
| MYSQL_DATABASE | No | Legacy MySQL-only form. Prefer DB_URL |