aboutsummaryrefslogtreecommitdiff
path: root/experimental/app/ssb/deploy/ssb-room.hcl
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-24 22:59:37 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-24 22:59:37 +0100
commit8d17a07c9be5cd9d400644c34ea50177535d15f6 (patch)
treecac734f62d4c04c898d4e70d1e2ba65f933317ca /experimental/app/ssb/deploy/ssb-room.hcl
parent4b527c4db8060679d21e5bb596bde91ce39df393 (diff)
downloadnixcfg-8d17a07c9be5cd9d400644c34ea50177535d15f6.tar.gz
nixcfg-8d17a07c9be5cd9d400644c34ea50177535d15f6.zip
reorganize some things
Diffstat (limited to 'experimental/app/ssb/deploy/ssb-room.hcl')
-rw-r--r--experimental/app/ssb/deploy/ssb-room.hcl59
1 files changed, 59 insertions, 0 deletions
diff --git a/experimental/app/ssb/deploy/ssb-room.hcl b/experimental/app/ssb/deploy/ssb-room.hcl
new file mode 100644
index 0000000..049b7dd
--- /dev/null
+++ b/experimental/app/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"
+ }
+ }
+ }
+}
+