Skip to content

Commit 6f5705b

Browse files
committed
docs/rofl/features/storage: Use named volume
Revert short syntax for volume mounting.
1 parent 7f65272 commit 6f5705b

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

docs/rofl/features/storage.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ way they are fetched only the first time a ROFL app is deployed, otherwise
1515
a cached version is considered.
1616

1717
Additionally, a ROFL developer can also take advantage of the persistent
18-
storage. Any folder residing inside the `/storage` folder on the host will be
19-
made persistent.
18+
storage. All non-external volumes will automatically reside in a persitent
19+
location on the host.
2020

21-
In the example below, we use the [short syntax for Compose
22-
volumes][compose-volumes] to make the `.ollama` home folder persistent. This way
23-
we avoid downloading ollama models each time a machine hosting the ROFL app is
24-
restarted:
21+
In the example below, we define a new volume called `my-volume` and make
22+
`.ollama` in the home folder persistent. This way we avoid downloading ollama
23+
models each time a machine hosting the ROFL app is restarted:
2524

2625
```yaml title="compose.yaml"
2726
services:
@@ -30,8 +29,9 @@ services:
3029
ports:
3130
- "11434:11434"
3231
volumes:
33-
- /storage/ollama:/root/.ollama
32+
- my-volume:/root/.ollama
3433
entrypoint: ["/usr/bin/bash", "-c", "/bin/ollama serve & sleep 5; ollama pull deepseek-r1:1.5b; wait"]
35-
```
3634

37-
[compose-volumes]: https://docs.docker.com/reference/compose-file/services/#short-syntax-5
35+
volumes:
36+
my-volume:
37+
```

0 commit comments

Comments
 (0)