Adds healthcheck for runner

This commit is contained in:
Italo
2024-06-29 23:42:26 -04:00
committed by GitHub
parent 807304c50b
commit 793f91e7fb
4 changed files with 16 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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