Docker 1.12 and later now have healthchecks — traefik should be able to get configured to take these into account if present.