nomad/gitea/gitea.nomad

75 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-09-09 23:37:09 +00:00
job "gitea" {
region = "global"
datacenters = [
"dc1",
]
type = "service"
group "gitea" {
count = 1
network {
port "http" {
to = 3000
}
port "ssh" {
static = 2222
to = 22
}
}
volume "gitea-data" {
type = "host"
source = "gitea-data"
read_only = false
}
restart {
attempts = 5
delay = "30s"
}
task "app" {
driver = "docker"
volume_mount {
volume = "gitea-data"
destination = "/data"
read_only = false
}
config {
image = "gitea/gitea:latest"
ports = ["ssh", "http"]
}
env {
APP_NAME = "Gitea: Git with a cup of tea"
RUN_MODE = "prod"
SSH_DOMAIN = "CHANGE ME"
SSH_PORT = "$NOMAD_PORT_ssh"
2023-07-30 04:32:34 +00:00
ROOT_URL = "https://gitea.elara.ws/"
2022-09-09 23:37:09 +00:00
USER_UID = "1002"
USER_GID = "1002"
GITEA__server__START_SSH_SERVER = "true"
}
resources {
cpu = 200
memory = 512
}
service {
name = "gitea"
port = "http"
tags = [
"traefik.enable=true",
2023-07-30 04:32:34 +00:00
"traefik.http.routers.gitea.rule=Host(`gitea.elara.ws`)",
2022-09-09 23:37:09 +00:00
"traefik.http.routers.gitea.tls.certResolver=letsencrypt"
]
}
}
}
}