Files
alo-cluster/services/resol-gateway.hcl

55 lines
936 B
HCL

job "resol-gateway" {
datacenters = ["alo"]
group "gw" {
volume "code" {
type = "host"
read_only = true
source = "code"
}
volume "nix-store" {
type = "host"
read_only = true
source = "nix-store"
}
volume "sw" {
type = "host"
read_only = true
source = "sw"
}
network {
port "http" {
static = "3333"
}
}
task "server" {
driver = "exec"
config {
command = "/sw/bin/node"
args = ["/code/resol-vbus/examples/json-live-data-server/index.js"]
}
volume_mount {
volume = "code"
destination = "/code"
}
volume_mount {
volume = "nix-store"
destination = "/nix/store"
}
volume_mount {
volume = "sw"
destination = "/sw"
}
service {
name = "resol-gateway"
port = "http"
}
}
}
}