SIEMbitwardendnscrypthome assistantjellyfinjitsimulti-factor authenticationnextcloudonlyofficepiholeraspberry pirocket.chatsyncthingtorwazuhwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
999 B
26 lines
999 B
|
6 years ago
|
[Unit]
|
||
|
|
Description=Mistborn Rocket Chat Service
|
||
|
|
Requires=Mistborn-base.service
|
||
|
|
After=Mistborn-base.service
|
||
|
5 years ago
|
PartOf=Mistborn-base.service
|
||
|
6 years ago
|
|
||
|
|
[Service]
|
||
|
|
Restart=always
|
||
|
5 years ago
|
RestartSec=15
|
||
|
6 years ago
|
User=root
|
||
|
|
Group=docker
|
||
|
|
PermissionsStartOnly=true
|
||
|
|
# Shutdown container (if running) when unit is stopped
|
||
|
5 years ago
|
ExecStartPre=/opt/mistborn/scripts/wrappers/mistborn_docker.sh rocketchat docker-compose -f /opt/mistborn/extra/rocketchat.yml down
|
||
|
6 years ago
|
|
||
|
6 years ago
|
ExecStartPre=/sbin/iptables -w -I DOCKER-USER -i DIFACE -p tcp --dport 3001 -j MISTBORN_LOG_DROP
|
||
|
6 years ago
|
# Start container when unit is started
|
||
|
5 years ago
|
ExecStart=/opt/mistborn/scripts/wrappers/mistborn_docker.sh rocketchat docker-compose -f /opt/mistborn/extra/rocketchat.yml up --build
|
||
|
6 years ago
|
# Stop container when unit is stopped
|
||
|
5 years ago
|
ExecStop=/opt/mistborn/scripts/wrappers/mistborn_docker.sh rocketchat docker-compose -f /opt/mistborn/extra/rocketchat.yml down
|
||
|
6 years ago
|
# Post stop
|
||
|
6 years ago
|
ExecStopPost=-/sbin/iptables -D DOCKER-USER -i DIFACE -p tcp --dport 3001 -j MISTBORN_LOG_DROP
|
||
|
6 years ago
|
|
||
|
|
[Install]
|
||
|
5 years ago
|
WantedBy=Mistborn-base.service
|