Adds health checks to web and data_handler container; restarting on failure #24

Open
ViMaSter wants to merge 15 commits from healthcheck into main
5 changed files with 17 additions and 3 deletions
Showing only changes of commit 907c20bad2 - Show all commits

fix: Enables PHP log output when running in development

Vincent Mahnke 2025-11-01 21:27:47 +01:00
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469

5
.gitignore vendored
View file

@ -3,4 +3,7 @@ lastState.txt
lastStatisticsUpdate.txt
log.*
state.txt
migrations
migrations
# created when running development environment
mariadb/**

View file

@ -6,6 +6,8 @@ services:
web:
volumes:
- ./web/www/sunders:/var/www/html:Z
environment:
APP_ENV: development
data_handler:
volumes:

View file

@ -1,5 +1,4 @@
<?php
error_reporting(0);
// Convert the content of the symbology JSON file to HTML.
function addListSymbology($jsonPath, $i18n, $i18nDefault) {
global $pathToWebFolder;

View file

@ -1,5 +1,4 @@
<?php
error_reporting(0);
include $pathToWebFolder.'config.php';
define('MAX_POINTS_FOR_QUICKHULL', 3000);

View file

@ -13,4 +13,15 @@
define('MYSQL_PASSWORD', getenv('CAMERA_SELECT_USER_PASSWORD') ?: '');
define('USE_STATISTICS', false);
$environment = getenv('APP_ENV') ?: 'production';
if ($environment === 'development') {
ini_set('display_errors', 1);
error_reporting(E_ALL);
return;
}
ini_set('display_errors', 0);
error_reporting(0);
?>