forked from Deuxfleurs/infrastructure
last tricot version
This commit is contained in:
parent
7f08d5f324
commit
a4982c6cd6
1 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
job "frontend" {
|
job "frontend" {
|
||||||
datacenters = ["dc1", "neptune"]
|
datacenters = ["dc1", "neptune"]
|
||||||
type = "system"
|
type = "service"
|
||||||
priority = 90
|
priority = 90
|
||||||
|
|
||||||
update {
|
update {
|
||||||
|
@ -9,6 +9,12 @@ job "frontend" {
|
||||||
}
|
}
|
||||||
|
|
||||||
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 }
|
||||||
|
@ -19,7 +25,7 @@ job "frontend" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "lxpz/amd64_tricot:4"
|
image = "lxpz/amd64_tricot:7"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
readonly_rootfs = true
|
readonly_rootfs = true
|
||||||
ports = [ "http_port", "https_port", "admin_port" ]
|
ports = [ "http_port", "https_port", "admin_port" ]
|
||||||
|
@ -41,7 +47,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
|
||||||
|
|
Loading…
Reference in a new issue