Skip to content

Commit

Permalink
Refactor StartSentinel.php for improved readability and maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed May 8, 2024
1 parent 829e17e commit 76a5290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Server/StartSentinel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ class StartSentinel
use AsAction;
public function handle(Server $server)
{
return instant_remote_process(['docker run --rm --pull always -d --name coolify-sentinel --restart always -p 127.0.0.1:8888:8888 -v /var/run/docker.sock:/var/run/docker.sock -v /data/coolify/metrics:/var/www/html/storage/app/metrics --pid host --health-cmd "curl --fail http://127.0.0.1:8888/api/health || exit 1" --health-interval 10s --health-retries 3 ghcr.io/coollabsio/sentinel:latest'], $server, false);
return instant_remote_process(['docker run --rm --pull always -d --name coolify-sentinel -p 127.0.0.1:8888:8888 -v /var/run/docker.sock:/var/run/docker.sock -v /data/coolify/metrics:/var/www/html/storage/app/metrics --pid host --health-cmd "curl --fail http://127.0.0.1:8888/api/health || exit 1" --health-interval 10s --health-retries 3 ghcr.io/coollabsio/sentinel:latest'], $server, false);
}
}

0 comments on commit 76a5290

Please sign in to comment.