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 DID

Italo807304c50b39
diff --git a/templates/compose/forgejo-with-runner-with-mariadb.yaml b/templates/compose/forgejo-with-runner-with-mariadb.yaml
index 973d5e9001..805aa0d9f2 100644
--- a/templates/compose/forgejo-with-runner-with-mariadb.yaml
+++ b/templates/compose/forgejo-with-runner-with-mariadb.yaml
@@ -63,7 +63,10 @@ services:
privileged: true
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "nc", "-z", "127.0.0.1", "2376"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
environment:
DOCKER_TLS_CERTDIR: /certs
DOCKER_HOST: docker-in-docker
diff --git a/templates/compose/forgejo-with-runner-with-mysql.yaml b/templates/compose/forgejo-with-runner-with-mysql.yaml
index 3d0cae9169..9487694af8 100644
--- a/templates/compose/forgejo-with-runner-with-mysql.yaml
+++ b/templates/compose/forgejo-with-runner-with-mysql.yaml
@@ -63,7 +63,10 @@ services:
privileged: true
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "nc", "-z", "127.0.0.1", "2376"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
environment:
DOCKER_TLS_CERTDIR: /certs
DOCKER_HOST: docker-in-docker
diff --git a/templates/compose/forgejo-with-runner-with-postgresql.yaml b/templates/compose/forgejo-with-runner-with-postgresql.yaml
index 040626f9f1..bac4a46810 100644
--- a/templates/compose/forgejo-with-runner-with-postgresql.yaml
+++ b/templates/compose/forgejo-with-runner-with-postgresql.yaml
@@ -62,7 +62,10 @@ services:
privileged: true
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "nc", "-z", "127.0.0.1", "2376"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
environment:
DOCKER_TLS_CERTDIR: /certs
DOCKER_HOST: docker-in-docker
diff --git a/templates/compose/forgejo-with-runner.yaml b/templates/compose/forgejo-with-runner.yaml
index e375279beb..7865e8fa4c 100644
--- a/templates/compose/forgejo-with-runner.yaml
+++ b/templates/compose/forgejo-with-runner.yaml
@@ -40,7 +40,10 @@ services:
privileged: true
restart: 'unless-stopped'
healthcheck:
- disable: true
+ test: ["CMD", "nc", "-z", "127.0.0.1", "2376"]
+ interval: 10s
+ timeout: 30s
+ retries: 10
environment:
DOCKER_TLS_CERTDIR: /certs
DOCKER_HOST: docker-in-docker