Fix recordings bind-mount write permissions in Docker Compose #23
Labels
No labels
bug
codex
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
wandabastyle/twitch_relay#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The container is configured to run as a non-root user:
but the
recordingsbind mount may not be writable by that UID/GID on the host:This can cause write failures when the app tries to create or save files under
/app/recordings.chmod 775alone is not enough unless the folder owner or group matches the container process UID/GID.How to verify
On the host:
Expected owner/group should usually be:
Inside the container:
If
touchfails, the bind mount permissions are wrong.Proposed fix
Ensure the host folder exists and is owned by UID/GID
1000:1000before starting the container:Optionally make the bind mount mode explicit for readability:
Note:
:rwis Docker’s default, so this is not the main fix. The important part is matching the host folder ownership/permissions to the configured container user.