Add the systemd file
This commit is contained in:
parent
11c8c9a587
commit
a6749a22b5
1 changed files with 14 additions and 0 deletions
14
backend/grafana-influxdb.service
Normal file
14
backend/grafana-influxdb.service
Normal 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
|
Loading…
Reference in a new issue