Add the systemd file

This commit is contained in:
Aaron Fischer 2017-11-21 09:24:17 +01:00
parent 11c8c9a587
commit a6749a22b5

View file

@ -0,0 +1,14 @@
[Unit]
Description=Grafana and InfluxDB
Wants=network.target
Requires=docker.service
After=docker.service
[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/docker-compose up
ExecStop=/usr/bin/docker-compose stop
WorkingDirectory=/var/grafana-influx/
[Install]
WantedBy=multi-user.target