monitoring - containerized Prometheus and Grafana on HypriotOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
392 B

# /lib/systemd/system/monitoring.service
[Unit]
Description=Monitoring Stack Docker Compose Application
Requires=docker.service
After=docker.service
[Service]
User=pirate
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/pirate/monitoring
ExecStart=/usr/local/bin/docker-compose up -d
ExecStop=/usr/local/bin/docker-compose down
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target