From 2b09c8a6af68278a518197a3ffdbd008f27a9c4f Mon Sep 17 00:00:00 2001 From: natto1784 Date: Wed, 2 Nov 2022 15:52:16 +0530 Subject: [PATCH] simpler-filehost: init Signed-off-by: natto1784 --- simpler-filehost/simpler-filehost.nomad | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 simpler-filehost/simpler-filehost.nomad diff --git a/simpler-filehost/simpler-filehost.nomad b/simpler-filehost/simpler-filehost.nomad new file mode 100644 index 0000000..44343a6 --- /dev/null +++ b/simpler-filehost/simpler-filehost.nomad @@ -0,0 +1,37 @@ +job "simpler-filehost" { + region = "global" + datacenters = [ "nazrin" ] + type = "service" + group "svc" { + count = 1 + network { + mode = "bridge" + port "http" { + static = 8888 + to = 8000 + } + } + + task "simpler-filehost" { + driver = "docker" + config { + image = "natto17/simpler-filehost:latest" + ports = ["http"] + volumes = [ "/var/lib/files:/var/files", "/tmp:/tmp" ] + } + env { + USER_URL = "https://f.weirdnatto.in" + ROCKET_LIMITS = "{file=\"512MB\",data-form=\"512MB\"}" + ROCKET_LOG_LEVEL = "debug" + } + resources { + cpu = 500 + memory = 256 + } + service { + name = "simpler-filehost" + port = "http" + } + } + } +}