Only one frontend

This commit is contained in:
Alex 2021-12-09 10:51:58 +01:00
parent 2d2e7bb5c6
commit 8d178815d6
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1
2 changed files with 1 additions and 23 deletions

View file

@ -3,18 +3,7 @@ job "frontend" {
type = "service" type = "service"
priority = 80 priority = 80
update {
max_parallel = 1
stagger = "1m"
}
group "traefik" { group "traefik" {
count = 3
constraint {
operator = "distinct_hosts"
value = "true"
}
network { network {
port "http_port" { static = 80 } port "http_port" { static = 80 }
port "https_port" { static = 443 } port "https_port" { static = 443 }

View file

@ -3,18 +3,7 @@ job "frontend" {
type = "service" type = "service"
priority = 90 priority = 90
update {
max_parallel = 1
stagger = "1m"
}
group "tricot" { group "tricot" {
count = 3
constraint {
operator = "distinct_hosts"
value = "true"
}
network { network {
port "http_port" { static = 80 } port "http_port" { static = 80 }
port "https_port" { static = 443 } port "https_port" { static = 443 }
@ -47,7 +36,7 @@ job "frontend" {
data = <<EOH data = <<EOH
TRICOT_NODE_NAME={{ env "attr.unique.hostname" }} TRICOT_NODE_NAME={{ env "attr.unique.hostname" }}
TRICOT_LETSENCRYPT_EMAIL=alex@adnab.me TRICOT_LETSENCRYPT_EMAIL=alex@adnab.me
RUST_LOG=tricot=debug RUST_LOG=tricot=trace
EOH EOH
destination = "secrets/env" destination = "secrets/env"
env = true env = true