Update .env.example for local and production database configurations, ensuring clarity on usage. Modify .gitattributes to enforce LF line endings for shell scripts. Enhance README.md with Docker and Coolify setup instructions for production deployment.

This commit is contained in:
2026-05-23 12:43:51 +02:00
parent 6577db475a
commit 054141020d
10 changed files with 624 additions and 3 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
/**
* Container health check (Coolify / Docker HEALTHCHECK).
*/
header('Content-Type: application/json; charset=utf-8');
require __DIR__ . '/config.php';
try {
if (!extension_loaded('pdo_pgsql')) {
throw new RuntimeException('pdo_pgsql extension missing');
}
require_once __DIR__ . '/helpers.php';
require_database();
$response = ['status' => 'ok'];
echo json_encode($response, JSON_UNESCAPED_UNICODE);
} catch (Throwable $e) {
http_response_code(503);
$response = [
'status' => 'error',
'message' => $e->getMessage(),
];
echo json_encode($response, JSON_UNESCAPED_UNICODE);
exit(1);
}