kreuzwerker/terraform-provider-docker

Support for healthcheck start-interval

cfstcyr opened this issue ยท 0 comments

Community Note

  • Please vote on this issue by adding a ๐Ÿ‘ reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The start interval is an option introduced in Docker 25.0.

The docker_container healthcheck schema is missing the start_interval in order to reflect the Docker API.

New or Affected Resource(s)

  • docker_container

Potential Terraform Configuration

resource "docker_container" "my-image" {
  # ...
  healthcheck {
    test = ["CMD", "curl", "-f", "http://localhost:3000"]
    interval = "1m"
    start_interval = "2s"
  }
}

References