title: Could not resolve host: git
body: <p>I've seen <a href="https://stackoverflow.com/questions/38911678/gogs-drone-getsockopt-connection-refused">Gogs + Drone getsockopt: connection refused</a> but I wonder whether something has changed.</p>
  
  <p>My docker-compose.yml</p>
  
  <pre><code>  git:
      image: gogs/gogs
      ports:
        - '8300:3000'
        - '443:443'
        - '8322:22'
      volumes:
        - 'gogs-data:/data'
      depends_on:
        - database
      labels:
        - 'traefik.backend=git'
        - 'traefik.port=3000'
        - 'traefik.frontend.rule=Host:git.drone.localhost'
  
    drone-server:
      image: drone/drone:0.8
  
      ports:
        - 8000
        - 9000
      volumes:
        - drone-server-data:/var/lib/drone/
      environment:
        - DRONE_OPEN=true
        - DRONE_HOST=http://drone-server:8000
        - DRONE_SECRET=SECRET
        - DRONE_GOGS=true
        - DRONE_GOGS_URL=http://git:3000
        - DRONE_GOGS_SKIP_VERIFY=true
  </code></pre>
  
  <p>After changing the webhook of my repo in gogs to <a href="http://droner-server:8000" rel="nofollow noreferrer">http://droner-server:8000</a> I can see drone starting the execution. But it fails cloning the repo: </p>
  
  <pre><code>+ git remote add origin http://git:3000/gituser/repo.git    0s
  + git fetch --no-tags origin +refs/heads/g2:    0s
  fatal: unable to access 'http://git:3000/gituser/repo.git/': Could not resolve host: git
  </code></pre>