Netflix / lemur-docker

Docker files for the Lemur certificate orchestration tool
170 stars 83 forks source link

Fix HEALTHCHECK of lemur container #65

Closed tho closed 3 years ago

tho commented 3 years ago

The lemur service listens on port :8000 inside the container, not :80. The Docker HEALTHCHECK runs inside the container, failed, and the container was marked unhealthy.

$ docker inspect lemur-docker_lemur_1 | jq .[0].State.Health
{
  "Status": "unhealthy",
  "FailingStreak": 69,
  "Log": [
    {
      "Start": "2021-07-29T18:00:17.2834705Z",
      "End": "2021-07-29T18:00:17.3647431Z",
      "ExitCode": 1,
      "Output": "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\ncurl: (7) Failed to connect to localhost port 80: Connection refused\n"
    },

Fixes #62