Created
April 15, 2015 21:31
-
-
Save mattbailey/a4cfaadeacf1f64791cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Plex | |
Requires=docker.service | |
Requires=data.service | |
Requires=network.target | |
After=data.service | |
After=docker.service | |
After=network.target | |
[Service] | |
Restart=on-failure | |
TimeoutStartSec=0 | |
ExecStartPre=-/usr/bin/docker kill %p | |
ExecStartPre=-/usr/bin/docker rm %p | |
ExecStart=/usr/bin/docker run -t \ | |
--net="host" \ | |
--rm \ | |
-p 32400:32400 \ | |
--name %p \ | |
--volumes-from data \ | |
-v /var/share/config/plex:/config \ | |
mattbailey/plex | |
ExecStop=-/usr/bin/docker kill %p | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment