Add healthcheck
This commit is contained in:
parent
6ab4501d0a
commit
bcea842abc
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue