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
1 changed files with 7 additions and 6 deletions

View File

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