Files

22 lines
621 B
Desktop File
Raw Permalink Normal View History

2020-03-07 19:37:10 +00:00
[Unit]
Description=Mistborn Nextcloud Service
Requires=Mistborn-base.service
After=Mistborn-base.service
[Service]
Restart=always
2020-03-10 03:07:36 +00:00
User=www-data
2020-03-07 19:37:10 +00:00
Group=docker
PermissionsStartOnly=true
# Shutdown container (if running) when unit is stopped
ExecStartPre=/usr/local/bin/docker-compose -f /opt/mistborn/extra/nextcloud.yml down
2020-03-10 03:07:36 +00:00
2020-03-07 19:37:10 +00:00
# Start container when unit is started
ExecStart=/usr/local/bin/docker-compose -f /opt/mistborn/extra/nextcloud.yml up --build
# Stop container when unit is stopped
ExecStop=/usr/local/bin/docker-compose -f /opt/mistborn/extra/nextcloud.yml down
# Post stop
[Install]
WantedBy=multi-user.target