diff --git a/init/docker-container@nunbot.service b/init/docker-container@nunbot.service new file mode 100644 index 0000000..6d70164 --- /dev/null +++ b/init/docker-container@nunbot.service @@ -0,0 +1,14 @@ + +[Unit] +Description=NunBot: Bringing nuns, ducks and love to Matrix +Requires=docker.service +After=docker.service + +[Service] +Restart=always +ExecStart=/usr/bin/docker run --name nunbot --mount=type=bind,source=/etc/nunbot/config.yaml,destination=/etc/nunbot/config.yaml git.saintnet.tech/stryan/nunbot +ExecStop=/usr/bin/docker rm -f nunbot + +[Install] +WantedBy=default.target +