This commit is contained in:
Steven Foerster
2021-03-01 19:51:55 -05:00
parent 65ecd7ae7b
commit 0b85a98e5e
3 changed files with 100 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
[Unit]
Description=Mistborn Scirius
Requires=Mistborn-base.service
After=Mistborn-base.service
PartOf=Mistborn-base.service
[Service]
Restart=always
User=root
Group=docker
PermissionsStartOnly=true
#EnvironmentFile=/opt/mistborn/.envs/.production/.scirius
ExecStartPre=/opt/mistborn/scripts/env/suricata_init.sh
# Shutdown container (if running) when unit is stopped
ExecStartPre=/usr/local/bin/docker-compose -f /opt/mistborn/extra/scirius.yml down
# Start container when unit is started
ExecStart=/usr/local/bin/docker-compose -f /opt/mistborn/extra/scirius.yml up --build
# Stop container when unit is stopped
ExecStop=/usr/local/bin/docker-compose -f /opt/mistborn/extra/scirius.yml down
# Post stop
[Install]
WantedBy=multi-user.target