Skip to content

Instantly share code, notes, and snippets.

@groob
Created August 8, 2014 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groob/c4d3faced4350d7304af to your computer and use it in GitHub Desktop.
Save groob/c4d3faced4350d7304af to your computer and use it in GitHub Desktop.
[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