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
fix: log drain only for Applications
Andras Bacsaidfd5cc9cefdb
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex ee1ceb049e..e7b42ea2c7 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -2819,8 +2819,10 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$defaultLabels = defaultLabels($resource->id, $containerName, $pull_request_id, type: 'application');$serviceLabels = $serviceLabels->merge($defaultLabels);- if ($server->isLogDrainEnabled() && $resource->isLogDrainEnabled()) {- data_set($service, 'logging', generate_fluentd_configuration());+ if ($server->isLogDrainEnabled()) {+ if ($resource instanceof Application && $resource->isLogDrainEnabled()) {+ data_set($service, 'logging', generate_fluentd_configuration());+ }}if ($serviceLabels->count() > 0) {if ($resource->settings->is_container_label_escape_enabled) {@@ -2923,8 +2925,10 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int$restart = data_get_str($service, 'restart', RESTART_MODE);$logging = data_get($service, 'logging');- if ($server->isLogDrainEnabled() && $resource->isLogDrainEnabled()) {- $logging = generate_fluentd_configuration();+ if ($server->isLogDrainEnabled()) {+ if ($resource instanceof Application && $resource->isLogDrainEnabled()) {+ $logging = generate_fluentd_configuration();+ }}$volumes = collect(data_get($service, 'volumes', []));$networks = collect(data_get($service, 'networks', []));