From cd6e1d15d136530f2f4c9cc96f5a5019525f8790 Mon Sep 17 00:00:00 2001 From: Asara Date: Fri, 8 Jan 2021 22:42:39 -0500 Subject: [PATCH] Add gitea --- nomad/gitea/gitea.nomad | 95 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 nomad/gitea/gitea.nomad diff --git a/nomad/gitea/gitea.nomad b/nomad/gitea/gitea.nomad new file mode 100644 index 0000000..6b93319 --- /dev/null +++ b/nomad/gitea/gitea.nomad @@ -0,0 +1,95 @@ +job "gitea" { + datacenters = ["columbia"] + region = "global" + type = "service" + + update { + stagger = "30s" + max_parallel = 1 + } + + group "gitea" { + count = 1 + + task "gitea" { + vault { + policies = ["default", "ansible"] + change_mode = "restart" + } + driver = "docker" + config { + image = "docker.service.masked.name:8082/gitea" + ports = ["http"] + volumes = [ + "/mnt/raid/gitea:/data" + ] + } + + service { + name = "gitea" + port = "http" + + check { + name = "gitea" + type = "tcp" + interval = "10s" + timeout = "2s" + address_mode = "driver" + } + } + + template { + data = <