[Unit] Description=A matrix bot that does amazing things! [Service] Type=simple User=molly Group=molly WorkingDirectory=/path/to/molly/docker ExecStart=/usr/bin/docker-compose up molly ExecStop=/usr/bin/docker-compose stop molly RemainAfterExit=yes Restart=always RestartSec=3 [Install] WantedBy=multi-user.target