Files
nomad-nummer5/apps/gitea/live.hcl
Udo Waechter d6dac9bd5c
All checks were successful
continuous-integration/drone/push Build is passing
priorities for jobs
2024-03-25 19:48:27 +01:00

99 lines
2.3 KiB
HCL

job "gitea" {
datacenters = [
"nummer5",
]
type = "service"
node_pool = "apps"
priority = 79
group "apps" {
count = 1
network {
mode = "host"
port "http" {
to = 3000
}
port "ssh" {
static = 2222
to = 20222
}
}
service {
name = "gitea"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.gitea.rule=Host(`gitea.service.nr5`)",
]
check {
type = "http"
path = "/user/login"
interval = "120s"
timeout = "5s"
}
}
volume "gitea-data" {
type = "csi"
source = "gitea-data"
read_only = false
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
restart {
attempts = 5
delay = "30s"
}
task "gitea" {
driver = "podman"
volume_mount {
volume = "gitea-data"
destination = "/data"
read_only = false
}
config {
image = "docker.io/gitea/gitea:latest"
ports = ["ssh", "http"]
force_pull = false
}
env {
APP_NAME = "Gitea: Git with a cup of tea"
RUN_MODE = "prod"
SSH_DOMAIN = "nr5"
SSH_PORT = "2222"
ROOT_URL = "http://gitea.service.nr5"
TZ = "Europe/Berlin"
USER_UID = "1000"
USER_GID = "1000"
DB_TYPE = "postgres"
DB_HOST = "postgres.service.nr5"
DB_USER = "gitea"
DB_PASSWORD = "giteaEu94XSS4gKpheSBoMsIs"
GITEA__lfs__PATH = "/data/git/lfs"
GITEA__server__START_SSH_SERVER = "true"
GITEA__packages__ENABLED = "true"
GITEA__log__LEVEL = "warn"
GITEA__actions__ENABLED = "true"
GITEA__webhook__ALLOWED_HOST_LIST = "private"
}
resources {
cpu = 200
memory = 512
}
}
}
}