Configuration
This page documents environment variables used by the Docker Compose setup (backend, frontend, MongoDB, Keycloak).
Backend
| Variable | Description | Example |
|---|---|---|
BACKEND_HOST |
Backend host/interface to bind to (container/runtime dependent) |
|
BACKEND_PORT |
Backend internal port (inside container) |
|
Frontend
| Variable | Description | Example |
|---|---|---|
FRONTEND_PORT |
Frontend internal port (inside container) |
|
FRONTEND_PORT_MAPPED |
Frontend port exposed on the host |
|
VITE_API_BASE_URL |
Base URL used by the frontend to call the backend API |
|
VITE_BASE_URL |
Base URL where the frontend is hosted (optional; used for routing/links) |
|
MongoDB (optional)
Set USE_MONGO to enable persistence of configuration/state.
| Variable | Description | Example |
|---|---|---|
USE_MONGO |
Enable MongoDB integration ( |
|
MONGO_HOST |
MongoDB host |
|
MONGO_PORT |
MongoDB port |
|
MONGO_INITDB_ROOT_USERNAME |
MongoDB root username |
|
MONGO_INITDB_ROOT_PASSWORD |
MongoDB root password |
|
MONGO_INITDB_DATABASE |
Initial database name |
|
MONGO_CONFIGURATION_STORAGE_COLLECTION |
Collection for configuration storage |
|
MONGO_CONFIGURATION_STORAGE_DATABASE |
Database used for configuration storage |
|
Keycloak (optional)
Enable authentication in the frontend with VITE_USE_KEYCLOAK=true.
| Variable | Description | Example |
|---|---|---|
VITE_USE_KEYCLOAK |
Enable Keycloak integration in frontend ( |
|
VITE_KEYCLOAK_URL |
Keycloak base URL |
|
VITE_KEYCLOAK_REALM |
Realm name |
|
VITE_KEYCLOAK_CLIENT_ID |
Frontend client id |
|
VITE_KEYCLOAK_CLIENT_SECRET |
Frontend client secret (if applicable) |
|
KEYCLOAK_CLIENT_ID |
Backend client id (for token verification / introspection if used) |
|
KEYCLOAK_CLIENT_SECRET |
Backend client secret (if used) |
|
Gurobi (optimization backend, optional)
These variables control the use of the Gurobi optimizer for optimization-based spatial bias mitigation methods.
| Variable | Description | Example |
|---|---|---|
USE_GRB_LIC |
Enable explicit Gurobi license configuration ( |
|
GRB_WLSACCESSID |
Web License Service (WLS) Access ID. Only required when using a WLS license. |
|
GRB_WLSSECRET |
Web License Service (WLS) Secret. Only required when using a WLS license. |
|
GRB_LICENSEID |
Gurobi License ID (WLS). Only required when explicitly configuring a WLS license. |
|
GRB_FALLBACK_TO_DEFAULT |
If |
|
GRB_OUTPUT_FLAG |
Control Gurobi logging ( |
|
GRB_THREADS |
Control the number of threads used by Gurobi. |
|