diff options
Diffstat (limited to 'app/matterbridge/deploy')
-rw-r--r-- | app/matterbridge/deploy/matterbridge.hcl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app/matterbridge/deploy/matterbridge.hcl b/app/matterbridge/deploy/matterbridge.hcl new file mode 100644 index 0000000..6fb6dd0 --- /dev/null +++ b/app/matterbridge/deploy/matterbridge.hcl @@ -0,0 +1,40 @@ +job "matterbridge" { + datacenters = ["dc1"] + type = "service" + priority = 90 + + constraint { + attribute = "${attr.cpu.arch}" + value = "amd64" + } + + group "main" { + count = 1 + + task "bridge" { + driver = "docker" + config { + image = "42wim/matterbridge:1.23" + readonly_rootfs = true + volumes = [ + "secrets/matterbridge.toml:/etc/matterbridge/matterbridge.toml" + ] + } + + resources { + memory = 200 + } + + template { + data = file("../config/matterbridge.toml") + destination = "secrets/matterbridge.toml" + } + + restart { + attempts = 10 + delay = "30s" + } + } + } +} + |