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" + } + } + } +}