Sign inSign up

bojtalepenye/logitechmediaserver

By bojtalepenye

•Updated almost 4 years ago

Run a logitechmediaserver on a LAN and connect it to a Synology NAS

Image
0

259

bojtalepenye/logitechmediaserver repository overview

⁠Logitechmediaserver


⁠Basic Overview

This is a docker container that you can pull from docker hub. Deploy the logitechmediaserver running in a docker container. Mount a shared cifs directory in host, and then mount it in the docker container.

⁠Tags

  • latest: the latest release version, currently v8.3.0

⁠Installation


After you pulled down the image, run:

docker run -d -t --name logitechmediaserver bojtalepenye/logitechmediaserver

Then run: docker stop CONTAINER_ID

Create a bash script. Paste this code into the bash file, replace these things, and the run the script:

  • NAS_IP_HERE -> NAS ip (ex: 192.168.1.55).
  • PUT_USERNAME_HERE -> Username you created on the Synology NAS.
  • PUT_PASSWORD_HERE -> Synology NAS's user password.
  • SHARED_DIRECTORY_TO_MOUNT -> Path to the shared directory that you want to mount on your system.
  • CONTAINER_ID -> Put the docker Container ID here. Get the Docker Container ID by tpying in docker ps -a (list all Docker Containers)
echo "Mounting Synology samba share to /mnt/mounted_synology_samba_share"
umount -t cifs /mnt/mounted_synology_samba_share/ >/dev/null
rm -rf /mnt/mounted_synology_samba_share/
mkdir /mnt/mounted_synology_samba_share
mount.cifs //NAS_IP_HERE/SHARED_DIRECTORY_TO_MOUNT /mnt/mounted_synology_samba_share -o username="PUT_USERNAME_HERE",password='PUT_PASSWORD_HERE'
docker run -it \
      -v "CONTAINER_ID":"/config":rw \
      -v "/mnt/mounted_synology_samba_share":"/mnt/mounted_synology_samba_share":ro \
      -v "CONTAINER_ID":"/playlist":rw \
      -v "/etc/localtime":"/etc/localtime":ro \
      -v "/etc/timezone":"/etc/timezone":ro \
      -p 9000:9000/tcp \ # If you change the default port, you have to change this port mapping right here as well.
      -p 9090:9090/tcp \
      -p 3483:3483/tcp \
      -p 3483:3483/udp \
      # -e HTTP_PORT=9072 \ # This is where you can change which port the server is going to run on.
      bojtalepenye/logitechmediaserver

[!NOTE] Note: The http port always has to be a 1:1 mapping. If you want to change the default port, where this server is running on, you can do that by setting the HTTP_PORT environment variable to a different port. First

  • Comment out the -e option in the docker run command
  • Then chnage the HTTP_PORT variable to something else.
  • Then you have to change the first port mapping ports as well.

Tag summary

Content type

Image

Digest

sha256:a6d6c1646…

Size

126.9 MB

Last updated

almost 4 years ago

docker pull bojtalepenye/logitechmediaserver