variable "flake_ref" { type = string } variable "flake_sha" { type = string } job "matrix-synapse" { datacenters = [ "homelab-1" ] type = "service" group "redis" { count = 1 volume "matrix-redis" { type = "csi" source = "matrix-redis" read_only = false attachment_mode = "file-system" access_mode = "single-node-writer" } restart { attempts = 5 delay = "5s" } network { mode = "bridge" } vault { policies = ["matrix-synapse-policy"] } service { name = "matrix-redis" port = "6379" # check { # type = "http" # address_mode = "alloc" # path = "/health" # port = "6167" # interval = "2s" # timeout = "2s" # } connect { sidecar_service {} } } task "redis" { driver = "docker" volume_mount { volume = "matrix-redis" destination = "/var/lib/redis" read_only = false } config { nix_flake_ref = "${var.flake_ref}#nixngSystems.conduitRedis.config.system.build.toplevel" nix_flake_sha = var.flake_sha entrypoint = [ "init" ] } template { data = <