forked from servian/hashiqube
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path2048-game.nomad
62 lines (48 loc) · 1.06 KB
/
2048-game.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
59
60
61
62
job "2048-game" {
type = "service"
datacenters = ["dc1"]
group "game" {
count = 1
// vault {
// policies = ["2048-game"]
// }
network {
mode = "host"
port "http" {
to = 80
}
}
service {
provider = "nomad"
tags = [
"traefik.http.routers.2048-game.rule=Host(`2048-game.localhost`)",
"traefik.http.routers.2048-game.entrypoints=web",
"traefik.http.routers.2048-game.tls=false",
"traefik.enable=true",
]
port = "http"
check {
type = "tcp"
interval = "10s"
timeout = "5s"
}
}
task "2048" {
driver = "docker"
config {
image = "alexwhen/docker-2048"
ports = ["http"]
}
resources {
cpu = 500 # MHz
memory = 256 # MB
}
// template {
// data = <<EOF
// my secret: "{{ with secret "kv/data/2048-game/stuff" }}{{ .Data.data.greeting }}{{ end }}"
// EOF
// destination = "local/2048-game.txt"
// }
}
}
}