gitea-runner and registry-ui

This commit is contained in:
2023-10-15 19:16:45 +02:00
parent e8890d8bb5
commit eec8baed22
7 changed files with 170 additions and 3 deletions

View File

@@ -0,0 +1,61 @@
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"
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
}
}
}
}