this post was submitted on 22 Jun 2023
22 points (86.7% liked)

Selfhosted

40439 readers
699 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I have an Intel NUC running plex media server on ubuntu headless server. It's running beautifully, and barely uses the nuc's resources. The videos are stored on a synology ds923+ NAS.

I'm thinking of adding a couple of new services to the NUC and would like to move to a dockerised setup. This would involve moving the plexmediaserver into a docker.

Is there a good way to do this without having to recreate and rescan all the plex video libraries?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago

It should be possible. Something like this:

1.	Backup your Plex database located at /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/.
2.	Install Docker on your NUC.
3.	Pull the Plex Docker image using docker pull plexinc/pms-docker.
4.	Run the Plex Docker container, pointing it to your Plex database and media files. Example command:

docker run
-d
--name plex
--network=host
-e PLEX_CLAIM="<YOUR_PLEX_CLAIM>"
-e ADVERTISE_IP="http://:32400/"
-v <PATH_TO_PLEX_DB>:/config
-v <PATH_TO_MEDIA>:/data
plexinc/pms-docker

4.	Replace <YOUR_PLEX_CLAIM>, <YOUR-SERVER-IP>, <PATH_TO_PLEX_DB>, and <PATH_TO_MEDIA> accordingly.

Make sure the Synology NAS is mounted on the host and passed as a volume to the Docker container. This should maintain your existing Plex libraries.