Skip to content

Instantly share code, notes, and snippets.

@roblayton
Last active August 29, 2015 14:24
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 roblayton/1ef0931810bac558eaef to your computer and use it in GitHub Desktop.
Save roblayton/1ef0931810bac558eaef to your computer and use it in GitHub Desktop.
An example NGiNX service for Systemd
[Unit]
Description=nginx
Requires=docker.service
After=docker.service
[Service]
ExecStart=/usr/bin/docker run --name mynginx -p 8080:80 nginx
[Install]
WantedBy=multi-user.target
[X-Fleet]
MachineOf=hello-01.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment