Document Docker config layout for API mutations

This commit is contained in:
astronaut808
2026-05-13 16:42:01 +05:00
parent 8895947414
commit 25ca64de1b
2 changed files with 6 additions and 3 deletions

View File

@@ -1251,7 +1251,7 @@ All mutating endpoints:
Docker deployment note:
- Mutating endpoints require `config.toml` to live inside a writable mounted directory.
- Do not mount `config.toml` as a single bind-mounted file when API mutations are enabled; atomic `tmp + rename` writes can fail with `Device or resource busy`.
- Mount the config directory instead, for example `./telemt-config:/run/telemt:rw`, and start Telemt with `/run/telemt/config.toml`.
- Mount the config directory instead, for example `./config:/etc/telemt:rw`, and start Telemt with `/etc/telemt/config.toml`.
- A read-only single-file mount remains valid only for read-only deployments or when `[server.api].read_only=true`.
Delete path cleanup guarantees:

View File

@@ -260,9 +260,12 @@ Example writable config mount for Control API mutations:
```yaml
services:
telemt:
working_dir: /run/telemt
volumes:
- ./telemt-config:/run/telemt:rw
command: /usr/local/bin/telemt /run/telemt/config.toml
- ./config:/etc/telemt:rw
tmpfs:
- /run/telemt:rw,mode=1777,size=4m
command: /usr/local/bin/telemt /etc/telemt/config.toml
```
**Run without Compose**