summaryrefslogtreecommitdiffstats
path: root/mailcow/mailcow.service
diff options
context:
space:
mode:
Diffstat (limited to 'mailcow/mailcow.service')
-rw-r--r--mailcow/mailcow.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/mailcow/mailcow.service b/mailcow/mailcow.service
new file mode 100644
index 0000000..af2d974
--- /dev/null
+++ b/mailcow/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