Skip to content

Commit 40aa181

Browse files
committed
Update README.md for part of directory mounting
1 parent c3f7de9 commit 40aa181

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docker/server/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ This directory contains a multi-stage Dockerfile for producing a lean runtime im
77

88
## Run
99

10-
Mount your local `config.toml` so the container uses your configuration:
10+
Mount your local configuration directory and a writable recordings directory:
1111

1212
```sh
13-
docker run --rm -p 8080:8080 -v $(pwd)/config.toml:/app/config.toml secondstate/echokit:latest-server
13+
docker run --rm \
14+
-p 8080:8080 \
15+
-v $(pwd)/config:/app \
16+
-v $(pwd)/record:/app/record \
17+
secondstate/echokit:latest-server
1418
```
1519

16-
The container executes `echokit_server config.toml` by default, reading logs at the `info` level.
20+
Place `config.toml` and `hello.wav` inside the mounted `config` directory so they appear in `/app` inside the container. The server writes any generated artifacts to `/app/record`, so ensure the `record` directory exists locally and is writable. The container executes `echokit_server config.toml` by default, reading logs at the `info` level.
1721

1822
## Build
1923

@@ -33,4 +37,3 @@ docker buildx build . --platform linux/arm64,linux/amd64 --tag secondstate/echok
3337
docker login
3438
docker push secondstate/echokit:latest-server
3539
```
36-

0 commit comments

Comments
 (0)