diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-21 19:29:08 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-21 19:29:08 +0200 |
commit | f22e24270036e84225ee4efe1086563b9504b26e (patch) | |
tree | a30f7e3dbbb3bbfcd57b199689e7522640776dfc /experimental/bad.ssb/deploy/ssb-room.hcl | |
parent | 4e939f55fc51311fbdc1fca8322cffd39e9b5bca (diff) | |
download | nixcfg-f22e24270036e84225ee4efe1086563b9504b26e.tar.gz nixcfg-f22e24270036e84225ee4efe1086563b9504b26e.zip |
SSB experiment
Diffstat (limited to 'experimental/bad.ssb/deploy/ssb-room.hcl')
-rw-r--r-- | experimental/bad.ssb/deploy/ssb-room.hcl | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/experimental/bad.ssb/deploy/ssb-room.hcl b/experimental/bad.ssb/deploy/ssb-room.hcl new file mode 100644 index 0000000..049b7dd --- /dev/null +++ b/experimental/bad.ssb/deploy/ssb-room.hcl @@ -0,0 +1,59 @@ +job "ssb" { + datacenters = ["neptune"] + type = "service" + + group "ssb-room" { + count = 1 + + constraint { + attribute = "${attr.unique.hostname}" + value = "caribou" + } + + network { + port "web_port" { + to = 8007 + } + port "ssb_port" { + to = 8008 + } + } + + task "go-ssb-room" { + driver = "docker" + config { + image = "lxpz/amd64_ssb_room:3" + readonly_rootfs = true + ports = [ "web_port", "ssb_port" ] + network_mode = "host" + volumes = [ + "/mnt/ssd/ssb-room:/root/.ssb/" + ] + } + user = "root" + + resources { + memory = 200 + } + + service { + name = "ssb-room-http" + tags = [ + "tricot ssb.staging.deuxfleurs.org", + ] + port = "web_port" + address_mode = "driver" + } + + service { + name = "ssb-room-ssb" + tags = [ + "(diplonat (port 8008))", + ] + port = "ssb_port" + address_mode = "driver" + } + } + } +} + |