title: Cant access consul webui docker compose
body: <p>Im trying to standup consul dev webui for traning purposes using docker compose.</p>
  
  <p>While consul claims to be running, when I try to visit localhost:8500/ui, the site is unreachable.</p>
  
  <p>My docker compose file:</p>
  
  <pre><code>version: "3"
  services:
  
    cs1:
      image: consul:1.4.2
      ports:
        - "8500:8500"
      command: "agent -dev -ui"
  </code></pre>
  
  <p>The response from the console is</p>
  
  <pre><code>cs1_1_6d8d914aa536 | ==&gt; Starting Consul agent...
  cs1_1_6d8d914aa536 | ==&gt; Consul agent running!
  cs1_1_6d8d914aa536 |            Version: 'v1.4.2'
  cs1_1_6d8d914aa536 |            Node ID: 'dfc6a0ce-3abc-a96d-718b-8b77155a2de6'
  cs1_1_6d8d914aa536 |          Node name: '1fde0528ab0c'
  cs1_1_6d8d914aa536 |         Datacenter: 'dc1' (Segment: '&lt;all&gt;')
  cs1_1_6d8d914aa536 |             Server: true (Bootstrap: false)
  cs1_1_6d8d914aa536 |        Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: -1, gRPC: 8502, DNS: 8600)
  cs1_1_6d8d914aa536 |       Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
  cs1_1_6d8d914aa536 |            Encrypt: Gossip: false, TLS-Outgoing: false, TLS-Incoming: false
  </code></pre>
  
  <p>I suspect the site is running on the docker container locahost but port 8500 hasnt been exposed properly.</p>
  
  <p>Thanks for your help</p>