diff --git a/data/nomad/folkugat.nomad b/data/nomad/folkugat.nomad new file mode 100644 index 0000000..741de95 --- /dev/null +++ b/data/nomad/folkugat.nomad @@ -0,0 +1,61 @@ +job "folkugat" { + region = "global" + datacenters = ["samfelag"] + type = "service" + + group "folkugat" { + count = 1 + + restart { + attempts = 5 + delay = "15s" + } + + network { + port "http" { + to = 80 + } + } + + # Volumes + + volume "folkugat" { + type = "host" + read_only = false + source = "folkugat" + } + + # FOLKUGAT WEB + task "folkugat" { + driver = "docker" + + env { + JWT_SECRET = "12345" + ADMIN_PASSWORD = "banshee" + DB_DIR = "/folkugat/db" + } + + config { + image = "marc.sastre.cat/folkugat-web:latest" + ports = ["http"] + } + + volume_mount { + volume = "folkugat" + destination = "/folkugat/db" + read_only = false + } + + resources { + cpu = 100 + memory = 128 + } + + service { + name = "folkugat" + port = "http" + } + } + } +} + diff --git a/data/nomad/cua-quinto.nomad b/data/nomad/old/cua-quinto.nomad similarity index 100% rename from data/nomad/cua-quinto.nomad rename to data/nomad/old/cua-quinto.nomad diff --git a/data/nomad/lwt.nomad b/data/nomad/old/lwt.nomad similarity index 100% rename from data/nomad/lwt.nomad rename to data/nomad/old/lwt.nomad diff --git a/data/nomad/minecraft.nomad b/data/nomad/old/minecraft.nomad similarity index 100% rename from data/nomad/minecraft.nomad rename to data/nomad/old/minecraft.nomad diff --git a/data/nomad/moimoin.nomad b/data/nomad/old/moimoin.nomad similarity index 100% rename from data/nomad/moimoin.nomad rename to data/nomad/old/moimoin.nomad diff --git a/data/nomad/organice.nomad b/data/nomad/old/organice.nomad similarity index 100% rename from data/nomad/organice.nomad rename to data/nomad/old/organice.nomad diff --git a/data/nomad/pasta.nomad b/data/nomad/old/pasta.nomad similarity index 100% rename from data/nomad/pasta.nomad rename to data/nomad/old/pasta.nomad diff --git a/data/nomad/presencia.nomad b/data/nomad/old/presencia.nomad similarity index 100% rename from data/nomad/presencia.nomad rename to data/nomad/old/presencia.nomad diff --git a/data/nomad/webhooks.nomad b/data/nomad/old/webhooks.nomad similarity index 100% rename from data/nomad/webhooks.nomad rename to data/nomad/old/webhooks.nomad