system/systemd/mailcow.service
Georg 570ed2aed2 Initial Systemd Service Run: 3/3
Signed-off-by: Georg <georg@lysergic.dev>
2021-07-21 13:04:22 +02:00

15 lines
286 B
Desktop File

[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