-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrusty-christmas-tree.nomad
58 lines (48 loc) · 1.15 KB
/
rusty-christmas-tree.nomad
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
53
54
55
56
57
58
job "rusty-christmas-tree" {
datacenters = ["scs"]
# The backend serves the frontend
group "backend" {
network {
mode = "bridge"
port "api" {
to = 3030
}
}
service {
name = "rusty-christmas-tree-warp"
port = "api"
tags = [
"traefik.enable=true",
"traefik.http.routers.rusty-christmas-tree-warp.rule=Host(`tree.dendropho.be`)",
"traefik.http.routers.rusty-christmas-tree-warp.entrypoints=https",
"traefik.http.routers.rusty-christmas-tree-warp.tls.certresolver=letsencrypt",
]
check {
type = "http"
port = "api"
path = "/current_renderer"
interval = "5s"
timeout = "2s"
check_restart {
limit = 3
grace = "30s"
ignore_warnings = false
}
}
}
task "warp" {
driver = "docker"
config {
image = "ghcr.io/angelonfira/rusty-christmas-tree/rusty-tree-web:latest"
ports = ["api"]
}
resources {
cpu = 100
memory = 30
}
env {
test = "test"
}
}
}
}