Skip to content

Commit

Permalink
Allow subjects dir to be customized using NIIVUEBROWSER_SUBJECTS_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Dec 6, 2023
1 parent 5ef214a commit ae185d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

:8080 {
handle_path /files/* {
root * /data
root * {$NIIVUEBROWSER_SUBJECTS_DIR:/data}
file_server * browse
}
handle {
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ Prepare your data to adhere to the [naming conventions](#naming-conventions). Th
```shell
docker run --rm --name niivue-browser \
-p 2019:2019 -p 8080:8080 \
-v "/path/to/your/data:/data:ro" \
-v "/path/on/host/to/your/data:/data:ro" \
ghcr.io/fnndsc/niivue-browser:latest
```

For whatever reason, you can change the container directory where data is served from by setting `NIIVUEBROWSER_SUBJECTS_DIR`.

```shell
docker run --rm --name niivue-browser \
-p 2019:2019 -p 8080:8080 \
-e NIIVUEBROWSER_SUBJECTS_DIR=/custom_dir
-v "/path/on/host/to/your/data:/custom_dir:ro" \
ghcr.io/fnndsc/niivue-browser:latest
```

Expand Down

0 comments on commit ae185d2

Please sign in to comment.