Last active
August 29, 2015 14:24
-
-
Save roblayton/1ef0931810bac558eaef to your computer and use it in GitHub Desktop.
An example NGiNX service for Systemd
This file contains hidden or 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 | |
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