Add fluentd logging configuration for database & services

This commit is contained in:
Andras Bacsai
2023-11-17 11:32:52 +01:00
parent b8252b85b0
commit 57738198ad
7 changed files with 60 additions and 1 deletions

View File

@@ -79,6 +79,16 @@ class StartPostgresql
]
]
];
if ($this->database->destination->server->isDrainLogActivated()) {
$docker_compose['services'][$container_name]['logging'] = [
'driver' => 'fluentd',
'options' => [
'fluentd-address' => "tcp://127.0.0.1:24224",
'fluentd-async' => "true",
'fluentd-sub-second-precision' => "true",
]
];
}
if (count($this->database->ports_mappings_array) > 0) {
$docker_compose['services'][$container_name]['ports'] = $this->database->ports_mappings_array;
}