Files
nomad-nummer5/apps/docker-registry/live-ui.hcl

63 lines
1.2 KiB
HCL

job "docker-registry-ui" {
datacenters = [
"nummer5",
]
type = "service"
group "apps" {
count = 1
network {
mode = "host"
port "http" {
to = 80
}
}
service {
name = "cr-ui"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.cr-ui.rule=Host(`cr-ui.service.nr5`)",
]
}
restart {
attempts = 5
delay = "30s"
}
task "docker-registry-ui" {
driver = "podman"
config {
image = "docker.io/joxit/docker-registry-ui:main"
ports = ["http"]
}
env {
DELETE_IMAGES = "true"
REGISTRY_TITLE = "Nummer5 Reg"
NGINX_PROXY_PASS_URL_DISABLED = "http://cr.wks"
REGISTRY_URL = "http://cr.wks:5000"
URL = "http://cr-ui.service.nr5"
SINGLE_REGISTRY = "true"
SHOW_CONTENT_DIGEST = "true"
SHOW_CATALOG_NB_TAGS = "true"
CATALOG_MIN_BRANCHES = "1"
CATALOG_MAX_BRANCHES = "1"
TAGLIST_PAGE_SIZE = "100"
REGISTRY_SECURED = "false"
CATALOG_ELEMENTS_LIMIT = "1000"
}
resources {
cpu = 100
memory = 64
}
}
}
}