Once I have added all of my services to a single docker-compose file, I use systemd to define a service that runs docker-compose up when the system boots: I make use of the PUID and PGID environment variables to configure which user account this container runs as, and set it up to mount all of the media shares that Plex will serve. Here’s the docker-compose file for linuxserver/plex: version: "2.1" Each container’s README.md file contains a sample docker-compose file that shows how to configure the service. The Docker files that describe each container come courtesy of linuxserver.io, which provides an excellent collection of containerized services. When setting up a new media server, I typically create a docker-compose file that lists all of the containers that I’d like to run. Configuration can be kept in one location, mounted by the container, and backed up to my Drobo so that I can easily recover in case of hardware failure.If anything stops working, I can just restart the container.The advantage to this approach is twofold: I tend the run the services that are hosted on my media server inside of Docker containers. In this post, I’ll go into some detail about setting up Plex Media Server and getting offsite backups working with Duplicati and Syncthing. In the first post in this series, I documented the process of procuring new media server hardware, installing and configuring the operating system, and getting my Drobo shares mounted with systemd and cifs.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |