/app/media didn't exist in the image, so the media_data volume had nothing to copy ownership from on first mount — Docker created the mount point owned by root, and the container runs as rosterchief. Uploads then failed with PermissionError. Create the directory before the chown so it carries the right ownership into the volume.
3.8 KiB
3.8 KiB