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.