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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user