From 01da6ddafef02de1ea17bda689229a9ff77031e8 Mon Sep 17 00:00:00 2001 From: Georg Date: Sun, 8 Aug 2021 15:34:55 +0200 Subject: Init Mailcow Signed-off-by: Georg --- mailcow/mailcow.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mailcow/mailcow.service (limited to 'mailcow/mailcow.service') 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 -- cgit v1.2.3