nomad/authelia/authelia.nomad

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-09-09 23:37:09 +00:00
job "authelia" {
region = "global"
datacenters = ["dc1"]
type = "service"
group "authelia" {
count = 1
volume "authelia-config" {
type = "host"
source = "authelia-config"
read_only = false
}
network {
port "authelia" {
to = 9091
static = 9091
}
}
task "authelia" {
driver = "docker"
volume_mount {
volume = "authelia-config"
destination = "/config"
read_only = false
}
env {
TZ = "CHANGE ME"
AUTHELIA_JWT_SECRET_FILE = "/config/secrets/jwt"
AUTHELIA_SESSION_SECRET_FILE = "/config/secrets/session"
}
config {
image = "authelia/authelia:latest"
ports = ["authelia"]
}
service {
name = "authelia"
port = "authelia"
tags = [
"traefik.enable=true",
"traefik.http.routers.authelia.rule=Host(`auth.arsenm.dev`)",
"traefik.http.routers.authelia.tls.certResolver=letsencrypt",
]
}
}
}
}