summaryrefslogtreecommitdiffstats
path: root/systemd/mailcow.service
diff options
context:
space:
mode:
authorGeorg2021-07-21 13:04:22 +0200
committerGeorg2021-07-21 13:04:22 +0200
commit570ed2aed2c1e5465767019b1de52fbd8028fad4 (patch)
treebfd7c1f6d40dc9195aad74104c4600c0fbaaa9aa /systemd/mailcow.service
parentb3cac70a7fd19c1f3e9aae6ac4fea528d7a85865 (diff)
downloadsystem-570ed2aed2c1e5465767019b1de52fbd8028fad4.tar.gz
system-570ed2aed2c1e5465767019b1de52fbd8028fad4.tar.bz2
system-570ed2aed2c1e5465767019b1de52fbd8028fad4.zip
Initial Systemd Service Run: 3/3
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'systemd/mailcow.service')
-rw-r--r--systemd/mailcow.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/systemd/mailcow.service b/systemd/mailcow.service
new file mode 100644
index 0000000..af2d974
--- /dev/null
+++ b/systemd/mailcow.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Mailcow
+Requires=docker.service
+After=docker.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+WorkingDirectory=/opt/mailcow-dockerized
+ExecStart=/usr/local/bin/docker-compose up -d
+ExecStop=/usr/local/bin/docker-compose down
+
+[Install]
+WantedBy=multi-user.target