Skip to content

Commit 01772be

Browse files
committed
Add storage mounting to examples
1 parent 998aa47 commit 01772be

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

workbench/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,23 @@ For Kubernetes deployments, Workbench uses these images together. See the [repos
5151
PWB_VERSION="2026.04.0"
5252
PWB_IMAGE="ghcr.io/posit-dev/workbench" # or docker.io/posit/workbench
5353
PWB_LICENSE_FILE_HOST_PATH="/path/to/license.lic"
54+
PWB_LICENSE_FILE_PATH="/etc/rstudio-server/license.lic"
55+
PWB_DATA_STORAGE_HOST_PATH="/path/to/data"
56+
PWB_HOME_STORAGE_HOST_PATH="/path/to/home"
5457
docker run -d \
5558
--name workbench \
5659
-p 8787:8787 \
5760
-e PWB_TESTUSER=posit \
5861
-e PWB_TESTUSER_PASSWD=posit \
59-
-v ${PWB_LICENSE_FILE_HOST_PATH}:/etc/rstudio-server/license.lic \
62+
-e PWB_LICENSE_FILE_PATH=${PWB_LICENSE_FILE_PATH} \
63+
-v ${PWB_LICENSE_FILE_HOST_PATH}:${PWB_LICENSE_FILE_PATH} \
64+
-v ${PWB_DATA_STORAGE_HOST_PATH}:/var/lib/rstudio-server \
65+
-v ${PWB_HOME_STORAGE_HOST_PATH}:/home \
6066
${PWB_IMAGE}:${PWB_VERSION}
6167
```
6268

6369
Access Workbench at `http://localhost:8787`. Log in with username `posit` and password `posit`.
6470

65-
> [!NOTE]
66-
> This example does not mount a data volume. Session data does not persist when the container stops. See <a href="#volumes">Volumes</a> for persistent storage.
67-
6871
### With a custom configuration file
6972

7073
```bash
@@ -97,10 +100,12 @@ services:
97100
- /path/to/license.lic:/etc/rstudio-server/license.lic
98101
- /path/to/rstudio:/etc/rstudio:ro
99102
- workbench-home:/home
103+
- workbench-shared:/var/lib/rstudio-server
100104
restart: unless-stopped
101105

102106
volumes:
103107
workbench-home:
108+
workbench-shared:
104109
```
105110
106111
## Image variants

0 commit comments

Comments
 (0)