mirror of
https://github.com/telemt/telemt.git
synced 2026-05-23 04:01:44 +03:00
Document Docker config layout for API mutations
This commit is contained in:
@@ -1251,7 +1251,7 @@ All mutating endpoints:
|
|||||||
Docker deployment note:
|
Docker deployment note:
|
||||||
- Mutating endpoints require `config.toml` to live inside a writable mounted directory.
|
- 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`.
|
- 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`.
|
- A read-only single-file mount remains valid only for read-only deployments or when `[server.api].read_only=true`.
|
||||||
|
|
||||||
Delete path cleanup guarantees:
|
Delete path cleanup guarantees:
|
||||||
|
|||||||
@@ -260,9 +260,12 @@ Example writable config mount for Control API mutations:
|
|||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
telemt:
|
telemt:
|
||||||
|
working_dir: /run/telemt
|
||||||
volumes:
|
volumes:
|
||||||
- ./telemt-config:/run/telemt:rw
|
- ./config:/etc/telemt:rw
|
||||||
command: /usr/local/bin/telemt /run/telemt/config.toml
|
tmpfs:
|
||||||
|
- /run/telemt:rw,mode=1777,size=4m
|
||||||
|
command: /usr/local/bin/telemt /etc/telemt/config.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
**Run without Compose**
|
**Run without Compose**
|
||||||
|
|||||||
Reference in New Issue
Block a user