From e1a585c1941b74573ba6ef4a3be6918d2c819382 Mon Sep 17 00:00:00 2001 From: Italo Date: Sat, 13 Jul 2024 23:32:34 -0400 Subject: [PATCH] Healtcheck done to the process name --- templates/compose/forgejo-with-runner-with-mariadb.yaml | 2 +- templates/compose/forgejo-with-runner-with-mysql.yaml | 2 +- templates/compose/forgejo-with-runner-with-postgresql.yaml | 2 +- templates/compose/forgejo-with-runner.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/compose/forgejo-with-runner-with-mariadb.yaml b/templates/compose/forgejo-with-runner-with-mariadb.yaml index 372da3866..a751ee284 100644 --- a/templates/compose/forgejo-with-runner-with-mariadb.yaml +++ b/templates/compose/forgejo-with-runner-with-mariadb.yaml @@ -65,7 +65,7 @@ services: privileged: true restart: 'unless-stopped' healthcheck: - test: ["CMD", "nc", "-z", "127.0.0.1", "2376"] + test: ["CMD", "pgrep", "dockerd"] interval: 10s timeout: 30s retries: 10 diff --git a/templates/compose/forgejo-with-runner-with-mysql.yaml b/templates/compose/forgejo-with-runner-with-mysql.yaml index c7abc3193..ccc33644f 100644 --- a/templates/compose/forgejo-with-runner-with-mysql.yaml +++ b/templates/compose/forgejo-with-runner-with-mysql.yaml @@ -65,7 +65,7 @@ services: privileged: true restart: 'unless-stopped' healthcheck: - test: ["CMD", "nc", "-z", "127.0.0.1", "2376"] + test: ["CMD", "pgrep", "dockerd"] interval: 10s timeout: 30s retries: 10 diff --git a/templates/compose/forgejo-with-runner-with-postgresql.yaml b/templates/compose/forgejo-with-runner-with-postgresql.yaml index 16c9278ff..0b4dcd3fe 100644 --- a/templates/compose/forgejo-with-runner-with-postgresql.yaml +++ b/templates/compose/forgejo-with-runner-with-postgresql.yaml @@ -64,7 +64,7 @@ services: privileged: true restart: 'unless-stopped' healthcheck: - test: ["CMD", "nc", "-z", "127.0.0.1", "2376"] + test: ["CMD", "pgrep", "dockerd"] interval: 10s timeout: 30s retries: 10 diff --git a/templates/compose/forgejo-with-runner.yaml b/templates/compose/forgejo-with-runner.yaml index 9e54fdda0..abcaa6e7e 100644 --- a/templates/compose/forgejo-with-runner.yaml +++ b/templates/compose/forgejo-with-runner.yaml @@ -42,7 +42,7 @@ services: privileged: true restart: 'unless-stopped' healthcheck: - test: ["CMD", "nc", "-z", "127.0.0.1", "2376"] + test: ["CMD", "pgrep", "dockerd"] interval: 10s timeout: 30s retries: 10