diff --git a/services/authentik.hcl b/services/authentik.hcl index 169ab7b..baa66ad 100644 --- a/services/authentik.hcl +++ b/services/authentik.hcl @@ -9,6 +9,9 @@ job "authentik" { port "https" { to = 9443 } + port "metrics" { + to = 9300 + } } task "server" { @@ -18,7 +21,8 @@ job "authentik" { image = "ghcr.io/goauthentik/server:2023.6.1" ports = [ "http", - "https" + "https", + "metrics" ] command = "server" } @@ -47,6 +51,11 @@ job "authentik" { "traefik.http.routers.authentik.entryPoints=websecure", ] } + service { + name = "authentik-metrics" + port = "metrics" + tags = [ "metrics" ] + } } task "worker" {