diff --git a/CHANGELOG.md b/CHANGELOG.md index 566bab4..f2ab9f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog [Back to main](README.md#changelog) +## 2024-09-20 + +- added process-based Healthcheck @jammsen (#275) + ## 2024-08-12 - added support to turn off backup-announcements, to have less spammy chat ingame, but errors will always be announced @Jadiction @jammsen (#272) diff --git a/Dockerfile b/Dockerfile index 363aff0..6b9558b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -209,5 +209,8 @@ RUN mkdir -p "$BACKUP_PATH" \ VOLUME ["${GAME_ROOT}"] +HEALTHCHECK --interval=10s --timeout=10s --start-period=30s --retries=3 \ + CMD pgrep -x "PalServer-Linux" >/dev/null 2>&1 || exit 1 + ENTRYPOINT ["/entrypoint.sh"] CMD ["/scripts/servermanager.sh"]