Run two authelia instances now that it's stateless

This commit is contained in:
IamTheFij 2023-07-07 15:51:34 -07:00
parent 2b91b6dc8f
commit df062000e7

View File

@ -57,12 +57,13 @@ resource "nomad_job" "lldap" {
module "authelia" { module "authelia" {
source = "../services/service" source = "../services/service"
name = "authelia" name = "authelia"
priority = 70 instance_count = 2
image = "authelia/authelia:latest" priority = 70
args = ["--config", "$${NOMAD_TASK_DIR}/authelia.yml"] image = "authelia/authelia:latest"
ingress = true args = ["--config", "$${NOMAD_TASK_DIR}/authelia.yml"]
service_port = 9091 ingress = true
service_port = 9091
# metrics_port = 9959 # metrics_port = 9959
env = { env = {
AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE = "$${NOMAD_SECRETS_DIR}/ldap_password.txt" AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE = "$${NOMAD_SECRETS_DIR}/ldap_password.txt"