Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Adds healthcheck for runner

Italo793f91e7fb1f
diff --git a/templates/compose/forgejo-with-runner-with-mariadb.yaml b/templates/compose/forgejo-with-runner-with-mariadb.yaml
index 805aa0d9f2..b137c93820 100644
--- a/templates/compose/forgejo-with-runner-with-mariadb.yaml
+++ b/templates/compose/forgejo-with-runner-with-mariadb.yaml
@@ -125,7 +125,10 @@ services:
- forgejo-localtime:/etc/localtime:ro
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "pgrep", "forgejo-runner"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
command: >-
bash -c '
while : ; do test -w .runner && forgejo-runner --config config.yml daemon ; sleep 1 ; done
diff --git a/templates/compose/forgejo-with-runner-with-mysql.yaml b/templates/compose/forgejo-with-runner-with-mysql.yaml
index 9487694af8..21c62c06d0 100644
--- a/templates/compose/forgejo-with-runner-with-mysql.yaml
+++ b/templates/compose/forgejo-with-runner-with-mysql.yaml
@@ -125,7 +125,10 @@ services:
- forgejo-localtime:/etc/localtime:ro
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "pgrep", "forgejo-runner"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
command: >-
bash -c '
while : ; do test -w .runner && forgejo-runner --config config.yml daemon ; sleep 1 ; done
diff --git a/templates/compose/forgejo-with-runner-with-postgresql.yaml b/templates/compose/forgejo-with-runner-with-postgresql.yaml
index bac4a46810..486c7a4621 100644
--- a/templates/compose/forgejo-with-runner-with-postgresql.yaml
+++ b/templates/compose/forgejo-with-runner-with-postgresql.yaml
@@ -124,7 +124,10 @@ services:
- forgejo-localtime:/etc/localtime:ro
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "pgrep", "forgejo-runner"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
command: >-
bash -c '
while : ; do test -w .runner && forgejo-runner --config config.yml daemon ; sleep 1 ; done
diff --git a/templates/compose/forgejo-with-runner.yaml b/templates/compose/forgejo-with-runner.yaml
index 7865e8fa4c..2e526cbdea 100644
--- a/templates/compose/forgejo-with-runner.yaml
+++ b/templates/compose/forgejo-with-runner.yaml
@@ -102,7 +102,10 @@ services:
- forgejo-localtime:/etc/localtime:ro
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "pgrep", "forgejo-runner"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
command: >-
bash -c '
while : ; do test -w .runner && forgejo-runner --config config.yml daemon ; sleep 1 ; done