ghtsto / docker-plexdrive-encfs

0 stars 1 forks source link

Out of date example in the README #2

Open dcferreira opened 2 years ago

dcferreira commented 2 years ago

I just set this up for myself, and had to dig a bit into the repo to figure out how to get it working, as a few things on the docker-compose config in the README are out of date.

After these notes, this is the outcome of the same example:

version: '3'

services:
  plexdrive:
    container_name: plexdrive
    image: ghtsto/plexdrive-encfs
    restart: always
    network_mode: "bridge"
    volumes:
      - ${DATA_DIR}/plexdrive/config:/config
      - ${DATA_DIR}/plexdrive/cache:/cache
      - ${DATA_DIR}/plexdrive/data:/unionfs:shared
      - ${DATA_DIR}/plexdrive/local-encrypted:/local-encrypted
      - ${DATA_DIR}/plexdrive/encfs:/encfs
    devices:
      - /dev/fuse
    cap_add:
      - MKNOD
      - SYS_ADMIN
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - PLEXDRIVE_OPTS=${PLEXDRIVE_OPTS}

And an additional tip, plexdrive takes quite a while to build the cache on the first run, and by default it provides no output. If you set PLEXDRIVE_OPTS=-v 2, you can monitor the progress on docker's logs.

Thanks for the repo @ghtsto , it saved me quite a bit of time :)

ghtsto commented 2 years ago

@dcferreira Thanks for the feedback and sorry for the late reply (I read your message when you posted it but I have a newborn and have moved and had ZERO time for follow-up!)

I'll have to reacquaint myself with what I was doing here before making the changes but am also happy to merge a PR if you'd like to make the changes.