title: Docker compose healthcheck options
body: <p>I'm trying to understand how the docker compose health check options work.</p>
  <p>healthcheck:
  interval: 1m30s
  timeout: 10s
  retries: 3</p>
  <p>Would I be right in saying that this configuration will poll a container every 90 seconds, then if the container times out after 10 seconds, then the swarm will try again 3 times, after which it will mark the container for termination and create a new one to replace it</p>
  <p>The documentation here
  <a href="https://docs.docker.com/compose/compose-file/compose-file-v3/" rel="nofollow noreferrer">https://docs.docker.com/compose/compose-file/compose-file-v3/</a></p>
  <p>Isn't very helpful.</p>
  <p>Thanks</p>