summaryrefslogtreecommitdiffstats
path: root/veetibot.container
diff options
context:
space:
mode:
authorOnni Lampi <contact@onnilampi.fi>2025-08-16 12:33:46 +0300
committerOnni Lampi <contact@onnilampi.fi>2025-08-16 17:18:29 +0300
commit30efac2becd6dcc6854bb1e896b9ab579b42c3cc (patch)
tree57eefee89e9caf37d7cc4cbc966f66b875c945ac /veetibot.container
parentbb88b544c64a3b0d4edef3faa09bff4c3a59bdba (diff)
Containerize the application
The containers are orchestrated with systemd.
Diffstat (limited to 'veetibot.container')
-rw-r--r--veetibot.container16
1 files changed, 16 insertions, 0 deletions
diff --git a/veetibot.container b/veetibot.container
new file mode 100644
index 0000000..c9307c3
--- /dev/null
+++ b/veetibot.container
@@ -0,0 +1,16 @@
+[Unit]
+Description=veetibot
+
+[Service]
+Restart=always
+RuntimeMaxSec=1d
+
+[Container]
+Image=veetibot.build
+Exec=npm start
+Volume=/home/slack-veetibot/veetibot/.env:/veetibot/.env:ro
+Volume=/home/slack-veetibot/veetibot/IG_CREDS:/veetibot/IG_CREDS:ro
+Volume=/home/slack-veetibot/.config/chromium:/home/veetibot/.config/chromium:ro,U
+
+[Install]
+WantedBy=default.target