Skip to content

[bug] Docker HealthCheck of Caddy Administrative Port #851

@zzqzzqzzq

Description

@zzqzzqzzq

It appears the PowerAdmin docker image has a health check enabled on the Caddy administrative port (2019), yet the default configuration doesn't seem to enable the requisite bit in Caddy.

An inspect on the container image shows:

"Healthcheck": {
  "Test": [
    "CMD-SHELL",
    "curl -f http://localhost:2019/metrics || exit 1"
  ]
},

Yet I find this in the image's /etc/caddy/Caddyfile: (Which I presume is what disables the admin port, particularly the "admin off")

{
frankenphp
admin off
order php_server before file_server
}

Obviously the image shows up as unhealthy while running.

Maybe its part of frankenphp? -- I didn't find said health check in the projects Dockerfile....

I hacked up my docker compose to override the healthcheck with a "stock" curl localhost:80 command and all is good, but I thought you might want the bug report..

Cheers!

David

Metadata

Metadata

Assignees

Labels

infraPerformance & Infrastructure

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions