I try to have a gitlab job on my nomad cluster and to get it with a Consul's address. My gitlab job:
job "gitlabce2" {
datacenters = ["dc1"] group "echo" {
count = 1
task "server" {
driver = "docker"
config {
image = "gitlab/gitlab-ce"
args = []
}
resources {
memory = 2500
cpu = 3000
network {
mbits = 10
port "http" {}
}
}
service {
name = "gitlabce"
port = "http"
tags = [
"mypc",
"urlprefix-/gitlabce2",
]
check {
type = "http"
path = "/"
interval = "2s"
timeout = "2s"
}
}
}
}
}
But Consul see my job but apparently my job is not on the good port. When I go inside the container I can do a curl localhost:80, but else I cannot have access to my gitlab.
How can I configure my job file ?
Thx