From b426a61a8c86d466f200e2193f5a0581e9105669 Mon Sep 17 00:00:00 2001 From: voruti <45130096+voruti@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:34:01 +0200 Subject: [PATCH] Move healthcheck into Dockerfile (#348) * Move healthcheck into Dockerfile --------- Co-authored-by: Robert Thomas <31854736+wolveix@users.noreply.github.com> --- Dockerfile | 3 +++ README.md | 6 ------ docker-compose.yml | 6 ------ ssl/README.md | 6 ------ ssl/docker-compose.yml | 6 ------ 5 files changed, 3 insertions(+), 24 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ce7b78..2ce4d40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,9 @@ RUN mkdir -p /config \ COPY init.sh healthcheck.sh / COPY --chown=steam:steam run.sh /home/steam/ +HEALTHCHECK --timeout=10s --start-period=180s \ + CMD bash /healthcheck.sh + WORKDIR /config ARG VERSION="DEV" diff --git a/README.md b/README.md index 8fac506..d982337 100644 --- a/README.md +++ b/README.md @@ -129,12 +129,6 @@ services: - ROOTLESS=false - STEAMBETA=false restart: unless-stopped - healthcheck: - test: [ "CMD", "bash", "/healthcheck.sh" ] - interval: 30s - timeout: 10s - retries: 3 - start_period: 120s deploy: resources: limits: diff --git a/docker-compose.yml b/docker-compose.yml index 8a64e6b..64561dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,12 +15,6 @@ services: - ROOTLESS=false - STEAMBETA=false restart: unless-stopped - healthcheck: - test: [ "CMD", "bash", "/healthcheck.sh" ] - interval: 30s - timeout: 10s - retries: 3 - start_period: 120s deploy: resources: limits: diff --git a/ssl/README.md b/ssl/README.md index 598666e..5682d20 100644 --- a/ssl/README.md +++ b/ssl/README.md @@ -27,12 +27,6 @@ services: depends_on: certbot: condition: service_completed_successfully - healthcheck: - test: bash /healthcheck.sh - interval: 30s - timeout: 10s - retries: 3 - start_period: 120s deploy: resources: limits: diff --git a/ssl/docker-compose.yml b/ssl/docker-compose.yml index 78ab09f..444c523 100644 --- a/ssl/docker-compose.yml +++ b/ssl/docker-compose.yml @@ -20,12 +20,6 @@ services: depends_on: certbot: condition: service_completed_successfully - healthcheck: - test: bash /healthcheck.sh - interval: 30s - timeout: 10s - retries: 3 - start_period: 120s deploy: resources: limits: