diff --git a/2-nomad-config/authelia.nomad.hcl b/2-nomad-config/authelia.nomad.hcl new file mode 100644 index 0000000..00062ef --- /dev/null +++ b/2-nomad-config/authelia.nomad.hcl @@ -0,0 +1,101 @@ +job "authelia" { + group "authelia" { + network { + port "http" { + static = 9091 + } + } + + 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 = <