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

@@ -78,6 +78,10 @@ job "traefik" {
[providers.consulCatalog.endpoint]
address = "127.0.0.1:8500"
scheme = "http"
[metrics]
[metrics.prometheus]
buckets = [0.1,0.3,1.2,5.0]
addServicesLabels = true
EOF
destination = "local/traefik.toml"

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
}
}
}
}

View File

@@ -34,7 +34,8 @@ job "gitea-runner" {
config {
image = "docker.io/gitea/act_runner:nightly"
volumes = [
"/var/run/podman/podman.sock:/var/run/docker.sock"
"/var/run/podman/podman.sock:/var/run/docker.sock",
"/etc/containers:/etc/containers"
]
}

View File

@@ -0,0 +1,21 @@
type = "csi"
id = "gitea-runner-data"
name = "gitea-runner-data"
plugin_id = "nfs"
external_id = "gitea-runner-data"
capability {
access_mode = "multi-node-multi-writer"
attachment_mode = "file-system"
}
context {
server = "ebin02.wks"
share = "/data/raid1-ssd/app-data/gitea-runner-data"
mountPermissions = "0"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "timeo=30", "vers=3", "_netdev" , "nolock" ]
}

View File

@@ -19,7 +19,7 @@ job "homeassistant" {
tags = [
"traefik.enable=true",
"traefik.http.routers.hassio.rule=Host(`hassio.nr5`)",
"traefik.http.routers.hassio.rule=Host(`hassio.service.nr5`)",
]
}

60
apps/nodered/live.hcl Normal file
View File

@@ -0,0 +1,60 @@
job "nodered" {
datacenters = [
"nummer5",
]
type = "service"
group "apps" {
count = 1
network {
mode = "host"
port "http" {
to = 1880
}
}
service {
name = "nodered"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.nodered.rule=Host(`nodered.service.nr5`)",
]
}
volume "nodered" {
type = "csi"
source = "nodered"
read_only = false
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
restart {
attempts = 5
delay = "60s"
}
task "nodered" {
driver = "podman"
volume_mount {
volume = "nodered"
destination = "/data"
read_only = false
}
config {
image = "docker.io/nodered/node-red:latest"
ports = ["http"]
}
resources {
cpu = 400
memory = 128
}
}
}
}

20
apps/nodered/volume.hcl Normal file
View File

@@ -0,0 +1,20 @@
type = "csi"
id = "nodered"
name = "nodered"
plugin_id = "nfs"
capability {
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
context {
server = "ebin01.wks"
share = "/data/raid1-ssd/app-data/nodered"
mountPermissions = "0"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "timeo=30", "vers=3", "_netdev" , "nolock" ]
}