[Unit] Description=Mitigator After=network.target docker.service containerd.service Requires=network.target docker.service containerd.service [Service] Type=simple WorkingDirectory=/srv/mitigator ExecStartPre=/usr/bin/docker-compose down ExecStart=/usr/bin/docker-compose up -d --remove-orphans ExecReload=/usr/bin/docker-compose up -d --remove-orphans ExecStop=/usr/bin/docker-compose down RemainAfterExit=yes Environment="COMPOSE_HTTP_TIMEOUT=200" Restart=on-failure RestartSec=10 StartLimitInterval=400 StartLimitBurst=3 [Install] WantedBy=multi-user.target