-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathexample.hcl
49 lines (41 loc) · 1020 Bytes
/
example.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
job "example" {
datacenters = ["dc1"]
type = "service"
group "group1" {
count = 1
network {
port "http" {}
}
task "task1" {
driver = "pot"
service {
tags = ["pot-jail", "metrics"]
name = "pot-example"
port = "http"
check {
type = "tcp"
name = "http"
interval = "5s"
timeout = "2s"
}
}
config {
image = "https://pot-registry.zapto.org/registry/"
pot = "nginx-only"
tag = "1.0"
command = "nginx -g 'daemon off;'"
port_map = {
http = "80"
}
network_mode = "host"
copy = [ "/tmp/test.txt:/root/test.txt", "/tmp/test2.txt:/root/test2.txt" ]
mount = [ "/tmp/test:/root/test", "/tmp/test2:/root/test2" ]
mount_read_only = [ "/tmp/test2:/root/test2" ]
}
resources {
cpu = 200
memory = 128
}
}
}
}