aboutsummaryrefslogtreecommitdiff
path: root/app/dummy
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 18:05:17 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 18:05:17 +0100
commitea55c9b12b9540418586305204843a256a29fdf5 (patch)
tree6d77a674d002a2f24db7a20e65cc7168822c0d18 /app/dummy
parent3693d9f36bea5a6884737231aef3417a661df3dd (diff)
downloadinfrastructure-ea55c9b12b9540418586305204843a256a29fdf5.tar.gz
infrastructure-ea55c9b12b9540418586305204843a256a29fdf5.zip
synapse on dummy infrastructure for tricot test
Diffstat (limited to 'app/dummy')
-rw-r--r--app/dummy/deploy/dummy-synapse.hcl47
1 files changed, 47 insertions, 0 deletions
diff --git a/app/dummy/deploy/dummy-synapse.hcl b/app/dummy/deploy/dummy-synapse.hcl
new file mode 100644
index 0000000..9b69914
--- /dev/null
+++ b/app/dummy/deploy/dummy-synapse.hcl
@@ -0,0 +1,47 @@
+job "dummy-synapse" {
+ datacenters = ["neptune"]
+ type = "service"
+
+ group "synapse" {
+ count = 1
+
+ constraint {
+ attribute = "${attr.unique.hostname}"
+ operator = "="
+ value = "cariacou"
+ }
+
+ network {
+ port "http" {
+ to = 8008
+ }
+ }
+
+ task "synapse" {
+ driver = "docker"
+ config {
+ image = "matrixdotorg/synapse:v1.48.0"
+ ports = [ "http" ]
+ volumes = [
+ "/mnt/ssd/dummy-synapse:/data",
+ ]
+ }
+ }
+
+
+ service {
+ port = "http"
+ tags = [
+ "tricot matrix.home.adnab.me 100",
+ "tricot matrix.home.adnab.me:8448 100",
+ "tricot-add-header Access-Control-Allow-Origin *",
+ ]
+ check {
+ type = "http"
+ path = "/"
+ interval = "10s"
+ timeout = "2s"
+ }
+ }
+ }
+}