aboutsummaryrefslogtreecommitdiff
path: root/nomad
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2019-12-09 16:18:48 +0100
committerQuentin <quentin@deuxfleurs.fr>2019-12-09 16:18:48 +0100
commitb33e289d996e8c69fef82d02e665f3fb87d894fa (patch)
treed98c2f9f877a98967275059f1e3ad80657e87df6 /nomad
parent73a0697e0fdbd3a9a5a9c963b5c654ce9f9bccc2 (diff)
downloadinfrastructure-b33e289d996e8c69fef82d02e665f3fb87d894fa.tar.gz
infrastructure-b33e289d996e8c69fef82d02e665f3fb87d894fa.zip
[synapse] Docker update from 1.4.0rc1 to 1.7.0rc1
Diffstat (limited to 'nomad')
-rw-r--r--nomad/chat.hcl64
1 files changed, 64 insertions, 0 deletions
diff --git a/nomad/chat.hcl b/nomad/chat.hcl
index a0c5397..3df61ae 100644
--- a/nomad/chat.hcl
+++ b/nomad/chat.hcl
@@ -113,7 +113,71 @@ job "chat" {
}
}
}
+/*
+ group "facebook_bridge" {
+ count = 1
+ task "fb2mx" {
+ driver = "docker"
+ config {
+ # https://mau.dev/tulir/mautrix-facebook/container_registry
+ image = "dock.mau.dev/tulir/mautrix-facebook:latest"
+ port_map {
+ api_port = 29319
+ }
+ volumes = [
+ "secrets/conf:/data"
+ ]
+ }
+
+ resources {
+ memory = 50
+ network {
+ port "api_port" {
+ static = "29319"
+ }
+ }
+ }
+
+ service {
+ tags = ["mxbridge"]
+ port = "api_port"
+ address_mode = "host"
+ name = "fb2mx"
+ check {
+ type = "tcp"
+ port = "api_port"
+ interval = "60s"
+ timeout = "5s"
+ check_restart {
+ limit = 3
+ grace = "90s"
+ ignore_warnings = false
+ }
+ }
+ }
+
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/chat/fb2mx/registration.yaml?raw"
+ destination = "secrets/tpl/registration.yaml.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/tpl/registration.yaml.tpl"
+ destination = "secrets/conf/registration.yaml"
+ }
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/chat/fb2mx/config.yaml?raw"
+ destination = "secrets/tpl/config.yaml.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/tpl/config.yaml.tpl"
+ destination = "secrets/conf/config.yaml"
+ }
+ }
+ }
+*/
group "riotweb" {
count = 1