Make sure there is always one traefik instance up when changing the configuration so we can still access nomad via it

This commit is contained in:
2025-10-14 20:11:22 +11:00
parent 2d931f9cfa
commit bf98fb84be
2 changed files with 41 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
job "traefik" {
group "traefik" {
count = 2
network {
mode = "bridge"
port "http" {
@@ -40,12 +42,6 @@ job "traefik" {
}
}
volume "traefik" {
type = "host"
read_only = false
source = "traefik"
}
task "traefik" {
driver = "docker"
@@ -60,7 +56,7 @@ job "traefik" {
}
volume_mount {
volume = "traefik"
volume = "unraid_appdata_traefik"
destination = "/opt/traefik"
read_only = false
}
@@ -221,6 +217,18 @@ EOF
}
}
volume "unraid_appdata_traefik" {
type = "csi"
read_only = false
source = "unraid_appdata_traefik"
access_mode = "multi-node-multi-writer"
attachment_mode = "file-system"
mount_options {
mount_flags = ["uid=1000", "gid=1000"]
}
}
task "cloudflared" {
driver = "docker"