Created
August 8, 2014 15:07
-
-
Save groob/c4d3faced4350d7304af 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=Nginx Container that serves the files from the data container. | |
After=munki-data.service | |
Requires=docker.service | |
[Service] | |
ExecStartPre=/usr/bin/docker kill munki-%i | |
ExecStartPre=/usr/bin/docker rm -f munki-%i | |
ExecStartPre=/usr/bin/docker pull macadmins/munki | |
ExecStart=/usr/bin/docker run --rm --name munki-%i --volumes-from munki-data -p 8000:80 macadmins/munki | |
ExecStop=/usr/bin/docker stop munki-%i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment