diff --git a/jobs/mc-router.hcl b/jobs/mc-router.hcl new file mode 100644 index 0000000..217a47d --- /dev/null +++ b/jobs/mc-router.hcl @@ -0,0 +1,61 @@ +job "mc-router" { + datacenters = ["aperture"] + + type = "service" + + constraint { + attribute = "${attr.unique.hostname}" + value = "bastion-vm" + } + + group "mc-router" { + count = 1 + + network { + port "mc" { + static = 4501 + } + } + + service { + port = "mc" + + check { + type = "tcp" + interval = "10s" + timeout = "2s" + } + } + + task "webserver" { + driver = "docker" + + config { + image = "ghcr.io/minekube/gate" + ports = ["mc"] + + volumes = [ + "local/file.conf:/config.yaml" + ] + } + + template { + data = <