diff --git a/templates/ghost/.felhom.yml b/templates/ghost/.felhom.yml index 2c3f5c1..d093bcf 100644 --- a/templates/ghost/.felhom.yml +++ b/templates/ghost/.felhom.yml @@ -56,8 +56,5 @@ app_info: # --- Controller-side health probe --- healthcheck: checks: - - type: api + - type: http port: 2368 - path: "/ghost/api/v4/admin/site/" - expect: - status: 200 diff --git a/templates/ghost/docker-compose.yml b/templates/ghost/docker-compose.yml index 3d5aa13..37ef9c3 100644 --- a/templates/ghost/docker-compose.yml +++ b/templates/ghost/docker-compose.yml @@ -26,7 +26,7 @@ services: limits: memory: 512M healthcheck: - test: ["CMD", "wget", "--spider", "-q", "http://localhost:2368/ghost/api/v4/admin/site/"] + test: ["CMD", "node", "-e", "require('http').get('http://localhost:2368/',r=>{process.exit(r.statusCode<400?0:1)}).on('error',()=>process.exit(1))"] interval: 30s timeout: 5s retries: 3