mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
send new vars to logdrain
This commit is contained in:
@@ -85,6 +85,7 @@ class StartClickhouse
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class StartDragonfly
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ class StartKeydb
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ class StartMariadb
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ class StartMongodb
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ class StartMysql
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ class StartPostgresql
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ class StartRedis
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ class InstallLogDrain
|
|||||||
Name forward
|
Name forward
|
||||||
Buffer_Chunk_Size 1M
|
Buffer_Chunk_Size 1M
|
||||||
Buffer_Max_Size 6M
|
Buffer_Max_Size 6M
|
||||||
|
Tag docker.*
|
||||||
[FILTER]
|
[FILTER]
|
||||||
Name grep
|
Name grep
|
||||||
Match *
|
Match *
|
||||||
@@ -48,6 +49,10 @@ class InstallLogDrain
|
|||||||
Name modify
|
Name modify
|
||||||
Match *
|
Match *
|
||||||
Set server_name {$server->name}
|
Set server_name {$server->name}
|
||||||
|
Rename COOLIFY_APP_NAME coolify.app_name
|
||||||
|
Rename COOLIFY_PROJECT_NAME coolify.project_name
|
||||||
|
Rename COOLIFY_SERVER_IP coolify.server_ip
|
||||||
|
Rename COOLIFY_ENVIRONMENT_NAME coolify.environment_name
|
||||||
[OUTPUT]
|
[OUTPUT]
|
||||||
Name nrlogs
|
Name nrlogs
|
||||||
Match *
|
Match *
|
||||||
@@ -71,6 +76,7 @@ class InstallLogDrain
|
|||||||
tag ${HIGHLIGHT_PROJECT_ID}
|
tag ${HIGHLIGHT_PROJECT_ID}
|
||||||
Buffer_Chunk_Size 1M
|
Buffer_Chunk_Size 1M
|
||||||
Buffer_Max_Size 6M
|
Buffer_Max_Size 6M
|
||||||
|
Tag docker.*
|
||||||
[OUTPUT]
|
[OUTPUT]
|
||||||
Name forward
|
Name forward
|
||||||
Match *
|
Match *
|
||||||
@@ -91,6 +97,7 @@ class InstallLogDrain
|
|||||||
Name forward
|
Name forward
|
||||||
Buffer_Chunk_Size 1M
|
Buffer_Chunk_Size 1M
|
||||||
Buffer_Max_Size 6M
|
Buffer_Max_Size 6M
|
||||||
|
Tag docker.*
|
||||||
[FILTER]
|
[FILTER]
|
||||||
Name grep
|
Name grep
|
||||||
Match *
|
Match *
|
||||||
@@ -99,6 +106,10 @@ class InstallLogDrain
|
|||||||
Name modify
|
Name modify
|
||||||
Match *
|
Match *
|
||||||
Set server_name {$server->name}
|
Set server_name {$server->name}
|
||||||
|
Rename COOLIFY_APP_NAME coolify.app_name
|
||||||
|
Rename COOLIFY_PROJECT_NAME coolify.project_name
|
||||||
|
Rename COOLIFY_SERVER_IP coolify.server_ip
|
||||||
|
Rename COOLIFY_ENVIRONMENT_NAME coolify.environment_name
|
||||||
[OUTPUT]
|
[OUTPUT]
|
||||||
Name http
|
Name http
|
||||||
Match *
|
Match *
|
||||||
|
|||||||
@@ -1756,6 +1756,7 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2056,6 +2056,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -2083,7 +2084,6 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
|
|||||||
updateCompose($savedService);
|
updateCompose($savedService);
|
||||||
|
|
||||||
return $service;
|
return $service;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$envs_from_coolify = $resource->environment_variables()->get();
|
$envs_from_coolify = $resource->environment_variables()->get();
|
||||||
@@ -2820,6 +2820,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
|
|||||||
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
'fluentd-address' => 'tcp://127.0.0.1:24224',
|
||||||
'fluentd-async' => 'true',
|
'fluentd-async' => 'true',
|
||||||
'fluentd-sub-second-precision' => 'true',
|
'fluentd-sub-second-precision' => 'true',
|
||||||
|
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user