-
Notifications
You must be signed in to change notification settings - Fork 1
/
rabbit.nomad
70 lines (65 loc) · 1.26 KB
/
rabbit.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
63
64
65
66
67
68
69
70
job "rabbit" {
datacenters = ["dc1"]
type = "service"
update {
max_parallel = 2
health_check = "checks"
auto_revert = true
auto_promote = true
canary = 1
}
group "main" {
network {
mode = "bridge"
port "ampq" {
to = 5672
}
port "management" {
to = 15672
}
port "monitoring" {
to = 15692
}
}
task "management" {
driver = "docker"
config {
image = "rabbitmq:3.11-management"
}
service {
name = "rabbitmq-mon"
tags = ["urlprefix-/rabbit"]
port = "monitoring"
check {
type = "http"
name = "readiness"
path = "/metrics"
interval = "20s"
timeout = "5s"
}
}
service {
name = "rabbitmq-ampq"
tags = ["urlprefix-/ampq"]
port = "ampq"
check {
type = "tcp"
interval = "30s"
timeout = "5s"
}
}
service {
name = "rabbitmq-admin"
tags = ["urlprefix-/ampq"]
port = "management"
check {
type = "http"
name = "admin_panel"
path = "/"
interval = "30s"
timeout = "5s"
}
}
}
}
}