Add healthcheck

This commit is contained in:
Greyscale 2025-01-21 13:37:20 +01:00
parent 6ab4501d0a
commit bcea842abc
Signed by: grey
GPG key ID: DDB392AE64B32D89

View file

@ -58,4 +58,7 @@ module "docker_registry" {
"/etc/docker/registry/config.yml" = yamlencode(local.registry_config_yaml)
"/etc/docker/registry/htpasswd" = local.registry_htpasswd
}
healthcheck = ["CMD", "wget", "-q", "http://localhost:5000/", "-O", "/dev/null"]
converge_enable = true
converge_timeout = "2m"
}