aboutsummaryrefslogtreecommitdiff
path: root/app/dummy/deploy/dummy-nginx.hcl
blob: 64150105ad719025c7c38342dad094d05907906e (plain) (blame)
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
job "dummy-nginx" {
	datacenters = ["neptune"]
	type = "service"
	
	group "nginx" {
		count = 1

		constraint {
			attribute = "${attr.unique.hostname}"
			operator = "="
			value = "carcajou"
		}

		network {
			port "http" {
				to = 80
			}
		}

		task "nginx" {
			driver = "docker"
			config {
				image = "nginx"
				ports = [ "http" ]
			}
		}

		service {
			port = "http"
			tags = [
				"tricot home.adnab.me 100",
			]
			check {
				type = "http"
				path = "/"
				interval = "10s"
				timeout = "2s"
			}
		}
	}
}