job "jitsi" { datacenters = ["neptune", "scorpio", "corrin"] type = "service" priority = 50 constraint { attribute = "${attr.cpu.arch}" value = "amd64" } group "control_plane" { network { port "bosh_port" { } port "xmpp_port" { static = 5223 } port "https_port" { } } task "xmpp" { driver = "docker" config { image = "superboum/amd64_jitsi_xmpp:v12" ports = [ "bosh_port", "xmpp_port" ] network_mode = "host" volumes = [ "secrets/prosody.cfg.lua:/etc/prosody/prosody.cfg.lua", "secrets/certs/auth.jitsi.crt:/var/lib/prosody/auth.jitsi.crt", "secrets/certs/auth.jitsi.key:/var/lib/prosody/auth.jitsi.key", "secrets/certs/jitsi.crt:/var/lib/prosody/jitsi.crt", "secrets/certs/jitsi.key:/var/lib/prosody/jitsi.key" ] } template { data = <