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 <cursoragent@cursor.com>
This commit is contained in:
@@ -12,6 +12,8 @@ services:
|
|||||||
worker:
|
worker:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
# Same UID as Syncthing (PUID=1002) so shared /data stays writable.
|
||||||
|
user: "1002:1002"
|
||||||
command: ["python3", "-m", "app.worker"]
|
command: ["python3", "-m", "app.worker"]
|
||||||
environment:
|
environment:
|
||||||
DATA_DIR: /data
|
DATA_DIR: /data
|
||||||
@@ -41,6 +43,7 @@ services:
|
|||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
user: "1002:1002"
|
||||||
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
depends_on:
|
depends_on:
|
||||||
- worker
|
- worker
|
||||||
|
|||||||
Reference in New Issue
Block a user