From 0eef4a75479cc55dfc055e04098f9cf94a0cd2c2 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 7 Aug 2022 15:28:11 -0400 Subject: [PATCH] docker service file --- init/docker-container@simpbot.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 init/docker-container@simpbot.service diff --git a/init/docker-container@simpbot.service b/init/docker-container@simpbot.service new file mode 100644 index 0000000..2c8edff --- /dev/null +++ b/init/docker-container@simpbot.service @@ -0,0 +1,11 @@ + +[Unit] +Description=Simpbot: automated appreciation of strange internet women +Requires=docker.service +After=docker.service + +[Service] +Restart=always +ExecStart=/usr/bin/docker run --name simpbot --mount=type=bind,source=/etc/simpbot/config.yaml,destination=/etc/simpbot/config.yaml git.saintnet.tech/stryan/simpbot +ExecStop=/usr/bin/docker rm -f simpbot +