How to set up RClone WebGUI server as a Docker Container

Add to tag this post
Be good to know if you can get this to work

Got it working once for a moment but just can't get it to work with fuse.

  rclone:
    image: rclone/rclone
    container_name: rclone
    restart: always
    volumes:
      - /home/plex/.config/rclone:/config/rclone
      - /home/plex/.config/rclone/cache:/home/plex/.cache/rclone/webgui
      - /home/plex/data:/data:shared
      - /etc/passwd:/etc/passwd:ro
      - /etc/group:/etc/group:ro
    cap_add:
      - SYS_ADMIN
      - SETPCAP
      - MKNOD
    devices:
      - /dev/fuse:/dev/fuse
    command: "mount media: /data/media --buffer-size 256M --dir-cache-time 1000h --log-level DEBUG --poll-interval 15s --timeout 1h --rc --rc-web-gui --rc-addr :5572 --rc-user=plex --rc-pass=plexmedia --log-file /config/rclone/logs/rcloneUnion04072020d.log"
    ports:
      - 5572:5572
    security_opt:
      - seccomp:unconfined
    environment:
      - PHP_TZ=Europe/London
      - PUID=1001
      - PGID=1001