[Unit]
Description=A matrix bot that does amazing things!

[Service]
Type=simple
User=matrix-alertbot
Group=matrix-alertbot
WorkingDirectory=/path/to/matrix-alertbot/docker
ExecStart=/usr/bin/docker-compose up matrix-alertbot
ExecStop=/usr/bin/docker-compose stop matrix-alertbot
RemainAfterExit=yes
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target