From 529593e26d620230e98c3c4852e03c60e0323f3c Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 7 Aug 2022 15:28:28 -0400 Subject: [PATCH] docker service file --- init/docker-container@nunbot.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 init/docker-container@nunbot.service 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 +