Skip to content

Instantly share code, notes, and snippets.

@DerEnderKeks
Created April 5, 2017 15:44
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 DerEnderKeks/f9da24fbdf58aff4bcdb2d5725c8effc to your computer and use it in GitHub Desktop.
Save DerEnderKeks/f9da24fbdf58aff4bcdb2d5725c8effc to your computer and use it in GitHub Desktop.
Yanius 2.x Systemd unit file
[Unit]
Description=Yanius
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment