-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] Remove environment variable table from README (#168)
* add separate TSV for environment variables * add info for API_QUERY_URL to env var table * clarifications in template .env and env var TSV * remove env var table from README and move query tool note * reformat README admonitions * add NB_QUERY_TAG and NB_QUERY_PORT_HOST to env var TSV
- Loading branch information
Showing
3 changed files
with
35 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Environment variable Required in .env? Description Default value if not set Relevant installation mode(s) | ||
`NB_GRAPH_USERNAME` Yes Username to access Stardog graph database that API will communicate with - Docker, Python | ||
`NB_GRAPH_PASSWORD` Yes Password to access Stardog graph database that API will communicate with - Docker, Python | ||
`NB_GRAPH_ADDRESS` No IP address for the graph database (or container name, if graph is hosted locally) `206.12.99.17 (graph)` ** Docker, Python | ||
`NB_GRAPH_DB` No Name of graph database endpoint to query (e.g., for a Stardog database, this will take the format of `{database_name}/query`) `test_data/query` Docker, Python | ||
`NB_RETURN_AGG` No Whether to return only dataset-level query results (including data locations) and exclude subject-level attributes. One of [true, false] `true` Docker, Python | ||
`NB_API_TAG` No Docker image tag for the API `latest` Docker | ||
`NB_API_PORT_HOST` No Port number on the _host machine_ to map the API container port to `8000` Docker | ||
`NB_API_PORT` No Port number on which to run the API `8000` Docker, Python | ||
`NB_API_ALLOWED_ORIGINS` Yes, if using a frontend query tool ‡ Origins allowed to make cross-origin resource sharing requests. Multiple origins must be separated with spaces in a single string enclosed in quotes. See ‡ for more info "`""""`" Docker, Python | ||
`NB_GRAPH_IMG` No Graph server Docker image `stardog/stardog:8.2.2-java11-preview` Docker | ||
`NB_GRAPH_ROOT_HOST` No Path to directory containing a Stardog license file on the _host machine_ `~/stardog-home` Docker | ||
`NB_GRAPH_ROOT_CONT` No Path to directory for graph databases in the _graph server container_ `/var/opt/stardog` * Docker | ||
`NB_GRAPH_PORT_HOST` No Port number on the _host machine_ to map the graph server container port to `5820` Docker, Python | ||
`NB_GRAPH_PORT` No Port number used by the _graph server container_ `5820` * Docker | ||
`NB_QUERY_TAG` No Docker image tag for the query tool `latest` Docker | ||
`NB_QUERY_PORT_HOST` No Port number used by the `query_tool` on the host machine `3000` Docker | ||
`API_QUERY_URL` Yes, unless default is correct URL of the API that the query tool will send its requests to. See also the [query tool README](https://github.com/neurobagel/query-tool?tab=readme-ov-file#set-the-environment-variables). **Must** end in a forward slash `/`! `http://localhost:8000/` Docker |