-
Notifications
You must be signed in to change notification settings - Fork 4
/
job.nomad.hcl
52 lines (43 loc) · 1.06 KB
/
job.nomad.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
job "bawang" {
type = "service"
group "bawang" {
network {
port "http" { }
}
service {
name = "bawang"
port = "http"
provider = "nomad"
tags = [
"traefik.enable=true",
"traefik.http.routers.bawang.rule=Host(`datasektionen.se`)||Host(`www.datasektionen.se`)",
"traefik.http.routers.bawang.tls.certresolver=default",
]
}
task "bawang" {
driver = "docker"
config {
image = var.image_tag
ports = ["http"]
}
template {
data = <<ENV
TAITAN_URL=http://taitan.nomad.dsekt.internal
RAZZLE_TAITAN_URL=https://taitan.datasektionen.se
CALYPSO_URL=http://calypso.nomad.dsekt.internal/api
RAZZLE_CALYPSO_URL=https://calypso.datasektionen.se/api
SLUTA_FIPPLA_MED_MINA_ENV_VARIABLER_RAZZLE__PORT={{ env "NOMAD_PORT_http" }}
ENV
destination = "local/.env"
env = true
}
resources {
memory = 128
}
}
}
}
variable "image_tag" {
type = string
default = "ghcr.io/datasektionen/bawang:latest"
}