Skip to content

Instantly share code, notes, and snippets.

@ddeaguiar
Created August 22, 2014 15:45
Show Gist options
  • Save ddeaguiar/720749add1cf3dac43a0 to your computer and use it in GitHub Desktop.
Save ddeaguiar/720749add1cf3dac43a0 to your computer and use it in GitHub Desktop.
[Unit]
Description=subgun
[Service]
ExecStartPre=-/usr/bin/docker kill subgun-%i
ExecStartPre=-/usr/bin/docker rm subgun-%i
ExecStart=/usr/bin/docker run -rm -name subgun-%i -e SUBGUN_LISTEN=127.0.0.1:8080 -e SUBGUN_LISTS=recv@sandbox2398.mailgun.org -e SUBGUN_API_KEY=key-779ru4cibbnhfa1qp7a3apyvwkls7ny7 -p 8080:8080 coreos/subgun
ExecStop=/usr/bin/docker kill subgun-%i
[X-Fleet]
X-Conflicts=subgun-http@*.service
@ddeaguiar
Copy link
Author

The CoreOS fleet deployment example is a great candidate for demonstrating the use of template files and systemd specifiers. It should really be updated to include that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment