job "authelia" { group "authelia" { network { mode = "bridge" port "http" { static = 9091 } } service { connect { sidecar_service { proxy { upstreams { destination_name = "postgres" local_bind_port = 5432 } } } } } service { name = "auth" port = "http" tags = [ "traefik.enable=true", ] check { type = "http" path = "/health" interval = "10s" timeout = "2s" } } task "authelia" { driver = "docker" config { image = "authelia/authelia:latest" ports = ["http"] volumes = [ "local/config:/config", "local/data:/data" # TODO: Move this to a volume ] } resources { cpu = 100 memory = 128 } template { data = <