mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 22:14:53 +00:00
fixes
This commit is contained in:
1 parent
6f50f857c6
commit
c5a40926e3
5 files changed
+9
-3
No files matched your search
@@ -19,7 +19,8 @@ class Kernel extends ConsoleKernel
|
||||
|
||||
$schedule->job(new InstanceDockerCleanupJob)->everyFiveMinutes();
|
||||
$schedule->job(new InstanceAutoUpdateJob)->everyFifteenMinutes();
|
||||
$schedule->job(new InstanceProxyCheckJob)->everyMinute();
|
||||
// Disabled for now, added oom_kill_disable: true to docker-compose.yml
|
||||
// $schedule->job(new InstanceProxyCheckJob)->everyMinute();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Actions\Proxy\InstallProxy;
|
||||
use App\Enums\ProxyTypes;
|
||||
use App\Models\Server;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
@@ -29,7 +30,7 @@ class InstanceProxyCheckJob implements ShouldQueue
|
||||
try {
|
||||
$container_name = 'coolify-proxy';
|
||||
$configuration_path = config('coolify.proxy_config_path');
|
||||
$servers = Server::whereRelation('settings', 'is_validated', true)->get();
|
||||
$servers = Server::whereRelation('settings', 'is_validated', true)->where('extra_attributes->proxy_type', ProxyTypes::TRAEFIK_V2)->get();
|
||||
|
||||
foreach ($servers as $server) {
|
||||
$status = get_container_status(server: $server, container_id: $container_name);
|
||||
|
||||
Reference in new issue
Block a user