An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fixes
Andras Bacsaic5a40926e3da
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.phpindex 8b32d10e85..ef681cc9a4 100644--- a/app/Console/Kernel.php+++ b/app/Console/Kernel.php@@ -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();}/**diff --git a/app/Jobs/InstanceProxyCheckJob.php b/app/Jobs/InstanceProxyCheckJob.phpindex f42d7cff2a..1de91261be 100755--- a/app/Jobs/InstanceProxyCheckJob.php+++ b/app/Jobs/InstanceProxyCheckJob.php@@ -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 ShouldQueuetry {$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);diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.phpindex 7290ac834a..3b0c069730 100644--- a/bootstrap/helpers/proxy.php+++ b/bootstrap/helpers/proxy.php@@ -27,6 +27,7 @@ if (!function_exists('getProxyConfiguration')) {"networks" => $array_of_networks->toArray(),"services" => ["traefik" => [+ "oom_kill_disable" => true,"container_name" => "coolify-proxy","image" => "traefik:v2.10","restart" => "always",diff --git a/docker-compose.prod.yml b/docker-compose.prod.ymlindex d7944b9225..07b92e4b2d 100644--- a/docker-compose.prod.yml+++ b/docker-compose.prod.yml@@ -1,6 +1,7 @@version: '3.8'services:coolify:+ oom_kill_disable: trueimage: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-4.0.0-nightly.0}"volumes:- type: bind@@ -41,6 +42,7 @@ services:postgres:condition: service_healthypostgres:+ oom_kill_disable: truevolumes:- coolify-db:/var/lib/postgresql/dataenvironment:@@ -59,6 +61,7 @@ services:retries: 5timeout: 2sredis:+ oom_kill_disable: truecommand: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}environment:REDIS_PASSWORD: "${REDIS_PASSWORD}"diff --git a/docker/prod-ssu/Dockerfile b/docker/prod-ssu/Dockerfileindex 01c984bd28..8f3e0927c2 100644--- a/docker/prod-ssu/Dockerfile+++ b/docker/prod-ssu/Dockerfile@@ -27,4 +27,4 @@ RUN echo "alias a='php artisan'" >>/etc/bash.bashrcRUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrcRUN echo "alias cda='composer dump-autoload'" >>/etc/bash.bashrcRUN echo "alias run='./scripts/run'" >>/etc/bash.bashrc-RUN echo "alias logs='logs -f storage/logs/laravel.log'" >>/etc/bash.bashrc+RUN echo "alias logs='tail -f storage/logs/laravel.log'" >>/etc/bash.bashrc