Mapping External Media Drive with Docker Compose

Server Version#: latest container
Player Version#: Version 3.95.2
OS: Ubuntu 16.04.6 LTS

I have been going through an effort to convert the applications / services running on an existing server I have to docker containers. It has been a great learning experience, but I have been unable to find a solution to mapping the folders on a NAS to the plex container. Today, the NAS is mounted to the server to make the movies and TV shows accessible to Plex. When attempting to make those same directories available to the plex container, all attempts have been unsuccessful.

I do know the container was installed correctly as I’m able to access the plex setup workflow. When attempting to find the directory, it is not available.

To create the containers on the server, I have been using docker compose. Below is the docker compose file:

plexms:
    container_name: plexms
    restart: always
    image: plexinc/pms-docker
    network_mode: host
    volumes:
      - ${USERDIR}/docker/plexms:/config
      - ${USERDIR}/Downloads/plex_tmp:/transcode
      - ${USERDIR}/docker/shared:/shared
      - '/media/NASVideos/TV Shows:/tv'
      - '/media/NASVideos/Movies:/movies'
    ports:
      - "32400:32400/tcp"
      - "3005:3005/tcp"
      - "8324:8324/tcp"
      - "32469:32469/tcp"
      - "1900:1900/udp"
      - "32410:32410/udp"
      - "32412:32412/udp"
      - "32413:32413/udp"
      - "32414:32414/udp"
    environment:
      - TZ=${TZ}
      - HOSTNAME="Docker Plex"
      - PLEX_CLAIM="claim-scBYPHiMkDfxQws443BE"
      - PLEX_UID=${PUID}
      - PLEX_GID=${PGID}
      - ADVERTISE_IP="http://192.168.100.31:32400/web"

I have attempted a number of variations to exposing the directories to the container such as:

volumes:
      - ${USERDIR}/docker/plexms:/config
      - ${USERDIR}/Downloads/plex_tmp:/transcode
      - ${USERDIR}/docker/shared:/shared
      - type: bind
        source: /media/NASVideos/TV Shows
        target: /home/server1/docker/plexms/TV Shows
        read_only: false

Any help to spot where I have gone wrong would be appreciated.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.