From 9a9a3e3afe9ce09fa2dd7313787c70b07babdbfd Mon Sep 17 00:00:00 2001 From: Frank Schwenk Date: Sat, 18 Jul 2026 14:26:17 +0200 Subject: [PATCH] fix: run web/worker as uid 1002 to match Syncthing Shared /data dirs created as root blocked Syncthing pulls into incoming/. Co-authored-by: Cursor --- compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compose.yml b/compose.yml index 8b72685..512064a 100644 --- a/compose.yml +++ b/compose.yml @@ -12,6 +12,8 @@ services: worker: build: . restart: unless-stopped + # Same UID as Syncthing (PUID=1002) so shared /data stays writable. + user: "1002:1002" command: ["python3", "-m", "app.worker"] environment: DATA_DIR: /data @@ -41,6 +43,7 @@ services: web: build: . restart: unless-stopped + user: "1002:1002" command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] depends_on: - worker