This commit is contained in:
Steven Foerster
2020-03-10 03:07:36 +00:00
parent 3108856618
commit 89d0b2ec64
11 changed files with 33 additions and 11 deletions
+2 -2
View File
@@ -5,12 +5,12 @@ After=Mistborn-base.service
[Service]
Restart=always
User=root
User=www-data
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
ExecStartPre=/bin/chown -R --from=root:root root:root /opt/mistborn_volumes/
# 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