Permission denied accessing folders in Resilio Sync container

Hey all! I am hoping to get a little help with my rsync setup.

I am trying to have rsync have access to 2 different folders from the host machine. I believe I have my docker-compose file set up correctly but when I try to access the folders from within rsync, I keep getting permission denied errors.

My environment vars:

PUID=“1000” # User ID
PGID=“999” # Docker Group
TZ=“America/New_York”
DOCKERDIR=“/home/ltm/docker”

And my compose file:

version: “2”
services:
resilio-sync:
image: linuxserver/resilio-sync
container_name: sync
restart: unless-stopped
ports:
- 8888:8888
- 55555:55555
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- UMASK_SET=022
volumes:
- ${DOCKERDIR}/sync/config:/config
- /media/tvshows/downloads:/downloads/tvshows
- /media/movies/downloads:/downloads/movies
- ${DOCKERDIR}/sync/data:/sync
labels:
- ‘traefik.enable=false’

On the host machine, both directories are owned drwxrwxrwx ltm:docker and in the container both directories are owned drwxrwxrwx abc:abc so theoretically I should have all the permissions correct if I understand correctly. Is anyone able to shed some light on what I am doing wrong? I am starting to lose my cool over it lol.

Thanks for any and all help.

Got it figured out. Apparently, the downloads folder is more of a temporary folder for partial downloads. The sync folder is where the actual syncing files go. For those interested in using multiple folders (mine are mounted drives per folder), here is my working compose file:

version: “2”
services:
resilio-sync:
image: linuxserver/resilio-sync
container_name: sync
restart: unless-stopped
ports:
- 8888:8888
- 55555:55555
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- UMASK_SET=022
volumes:
- ${DOCKERDIR}/sync/config:/config
- ${DOCKERDIR}/sync:/downloads
- (path to location 1):/sync/folder1
- (path to location 2):/sync/folder2
labels:
- ‘traefik.enable=false’

Once you fire up Sync, it will show up as:

/sync (parent folder)
folder1
folder2