Rename tricot+traefik to frontend

This commit is contained in:
Alex 2021-12-08 12:21:50 +01:00
parent 3297135a58
commit 2c2ee6c903
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1
3 changed files with 27 additions and 10 deletions

View file

@ -1,26 +1,33 @@
job "tricot" {
job "frontend" {
datacenters = ["dc1", "neptune"]
type = "system"
priority = 90
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
}
update {
max_parallel = 1
stagger = "1m"
}
group "tricot" {
task "tricot" {
network {
port "http_port" { static = 80 }
port "https_port" { static = 443 }
port "admin_port" { static = 8082 }
}
task "server" {
driver = "docker"
config {
image = "lxpz/amd64_tricot:4"
network_mode = "host"
readonly_rootfs = true
ports = [ "http_port", "https_port", "admin_port" ]
}
resources {
cpu = 1000
memory = 100
}
restart {
@ -40,8 +47,18 @@ EOH
env = true
}
resources {
memory = 40
service {
name = "tricot-http"
port = "http_port"
tags = [ "(diplonat (tcp_port 80))" ]
address_mode = "host"
}
service {
name = "tricot-https"
port = "https_port"
tags = [ "(diplonat (tcp_port 443))" ]
address_mode = "host"
}
}
}