aboutsummaryrefslogtreecommitdiff
path: root/app/matterbridge/deploy/matterbridge.hcl
blob: 6fb6dd05dfbdb7415dfcdb06c54d7dbe52a66d9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"
	  }
	}
  }
}