Run a logitechmediaserver on a LAN and connect it to a Synology NAS
259
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.
latest: the latest release version, currently v8.3.0After 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:
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_PORTenvironment variable to a different port. First
- Comment out the -e option in the
docker runcommand- Then chnage the
HTTP_PORTvariable to something else.- Then you have to change the first port mapping ports as well.
Content type
Image
Digest
sha256:a6d6c1646…
Size
126.9 MB
Last updated
almost 4 years ago
docker pull bojtalepenye/logitechmediaserver