/docker-plexdrive

Docker Plex Drive

Primary LanguageDockerfile

docker-plexdrive

Docker image for running plexdrive

  • Ubuntu 18.04
  • Plexdrive 5.0.0

Usage Sample

version: '3'

services:
  plexdrive:
    container_name: plexdrive
    image: wiserain/plexdrive:5.0.0
    restart: always
    network_mode: "bridge"
    volumes:
      - ${DOCKER_ROOT}/plexdrive/config:/config
      - /your/mounting/point:/data:shared
    privileged: true
    devices:
      - /dev/fuse
    cap_add:
      - MKNOD
      - SYS_ADMIN
    environment:
      - PUID=<user id>
      - PGID=<group id>
      - RUN_OPTS=<additional arguments for running plexdrive>

First, up and run your container as above. It will be waiting for two plexdrive configuration files to be ready. You can create those files using built-in script by

docker-compose exec <service_name> plexdrive_setup

Once you finish typing your API token, shell stops responding. No worries, it is expected. Simply escape by Ctrl+C, and go to /config. You will find two json files generated. Container running in background proceeds to execute mounting command for plexdrive. You can now access google drive contents via volume-mapped /your/mounting/point.

https://docs.docker.com/compose/gettingstarted/ --> build Dockerfile in docker-compose.yaml
https://docs.docker.com/compose/startup-order/ --> startup order