* add NB_MIN_CELL_SIZE env var & reorder env var table for flow - fix typo in var name in template.env Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com> --------- Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>
3 KiB
3 KiB
| 1 | Environment variable | Default needs change? | Description | Default value if not set | Used in these installation modes |
|---|---|---|---|---|---|
| 2 | `NB_GRAPH_USERNAME` | Yes | Username to set for the graph database user. | - | Docker, Python |
| 3 | `NB_GRAPH_SECRETS_PATH` | Yes | Path to files containing the secure passwords to set for the admin user (NB_GRAPH_ADMIN_PASSWORD.txt) and graph database user (NB_GRAPH_PASSWORD.txt). | `./secrets` | Docker |
| 4 | `NB_GRAPH_DB` | Yes | Name to give your graph database (e.g., for a GraphDB database, use the format `repositories/{database_name}`) | `repositories/my_db` | Docker, Python |
| 5 | `LOCAL_GRAPH_DATA` | Yes | Path on your filesystem to the JSONLD files you want to upload to the graph database | `./data` | Docker |
| 6 | `NB_GRAPH_PORT_HOST` | No | Port number on the _host machine_ to map the graph server container port to | `7200` | Docker |
| 7 | `NB_API_ALLOWED_ORIGINS` | No | Origins allowed to make cross-origin resource sharing requests. Multiple origins must be separated with spaces in a single string enclosed in quotes. | `""` | Docker, Python |
| 8 | `NB_RETURN_AGG` | No | Whether to return only aggregate, dataset-level query results (excluding subject/session-level attributes). One of [true, false] | `true` | Docker, Python |
| 9 | `NB_MIN_CELL_SIZE` | No | Minimum number of matching subjects required for a dataset to be returned as a query match. Datasets with matching subjects <= this number will be excluded from query results. | `0` | Docker, Python |
| 10 | `NB_NAPI_TAG` | No | Docker image tag for the Neurobagel node API | `latest` | Docker |
| 11 | `NB_NAPI_PORT_HOST` | No | Port number on the _host machine_ to map the Neurobagel node API container port to | `8000` | Docker |
| 12 | `NB_FAPI_TAG` | No | Docker image tag for the Neurobagel federation API | `latest` | Docker |
| 13 | `NB_FAPI_PORT_HOST` | No | Port number on the _host machine_ to map the Neurobagel federation API container port to | `8080` | Docker |
| 14 | `NB_QUERY_TAG` | No | Docker image tag for the query tool | `latest` | Docker |
| 15 | `NB_QUERY_PORT_HOST` | No | Port number used by the `query_tool` on the host machine | `3000` | Docker |
| 16 | `NB_API_QUERY_URL` | Yes | URL (and port number, if needed) of the Neurobagel API that the query tool will send its requests to. The query tool sends requests from a user's machine, so ensure the API URL is provided *as a user would access it from their own machine*. See also the [query tool README](https://github.com/neurobagel/query-tool?tab=readme-ov-file#set-the-environment-variables). | - | Docker |
| 17 | `NB_QUERY_APP_BASE_PATH` | No | The URL path for the query tool, determines the specific URL at which the app should be rendered for users to access it | `/` | Docker |
| 18 | `NB_ENABLE_AUTH` | No | **(Experimental, for dev deployments only)** Whether to enable authentication for cohort queries. One of [true, false] | `false` | Docker, Python |
| 19 | `NB_QUERY_CLIENT_ID` | No | **(Experimental, for dev deployments only)** OAuth client ID for the query tool. Required if NB_ENABLE_AUTH is set to true. | - | Docker, Python |