title: Nomad gitlab with consul
body: <p>I try to have a gitlab job on my nomad cluster and to get it with a Consul's address.
  My gitlab job:</p>
  <pre><code>    job &quot;gitlabce2&quot; {
    datacenters = [&quot;dc1&quot;]  group &quot;echo&quot; {
      count = 1
      task &quot;server&quot; {
  
        driver = &quot;docker&quot;
        config {
          image = &quot;gitlab/gitlab-ce&quot;
          args  = []
        }      
      resources {
          memory = 2500
          cpu = 3000
          network {
            mbits = 10
            port &quot;http&quot; {}
        }
      }
      service {
          name = &quot;gitlabce&quot;
          port = &quot;http&quot;
  
          tags = [
            &quot;mypc&quot;,
            &quot;urlprefix-/gitlabce2&quot;,
          ]        
          
          check {
            type     = &quot;http&quot;
            path     = &quot;/&quot;
            interval = &quot;2s&quot;
            timeout  = &quot;2s&quot;
          }
        }
      }
    }
  }
  </code></pre>
  <p>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.</p>
  <p>How can I configure my job file ?</p>
  <p>Thx</p>