From 25ca64de1b92a8683bb9c91649e8d91bf25ae809 Mon Sep 17 00:00:00 2001 From: astronaut808 <38975427+astronaut808@users.noreply.github.com> Date: Wed, 13 May 2026 16:42:01 +0500 Subject: [PATCH] Document Docker config layout for API mutations --- docs/Architecture/API/API.md | 2 +- docs/Quick_start/QUICK_START_GUIDE.en.md | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/Architecture/API/API.md b/docs/Architecture/API/API.md index d243151..589724d 100644 --- a/docs/Architecture/API/API.md +++ b/docs/Architecture/API/API.md @@ -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: diff --git a/docs/Quick_start/QUICK_START_GUIDE.en.md b/docs/Quick_start/QUICK_START_GUIDE.en.md index 339799e..de7ec4d 100644 --- a/docs/Quick_start/QUICK_START_GUIDE.en.md +++ b/docs/Quick_start/QUICK_START_GUIDE.en.md @@ -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**