title: Docker-compose expose Port on IPv6
body: <p>I'm trying to run a docker Container with a number of exposed ports on IPv6. I don't want the containers to have IPv6 addresses of their own. All I want is for them to be reachable under the IPv6 address of the host (using port forwarding).</p>
  <p>I enabled IPv6 in the docker daemon (<a href="http://docs.docker.oeynet.com/engine/userguide/networking/default_network/ipv6/" rel="nofollow noreferrer">http://docs.docker.oeynet.com/engine/userguide/networking/default_network/ipv6/</a>).</p>
  <p>I tried</p>
  <pre><code>ports:
    # The HTTP port
    - &quot;:::80:80&quot;
  </code></pre>
  <p>in the docker-compose.yaml for the container but that seems to mess up the configuration completely:</p>
  <pre><code>CONTAINER ID   IMAGE                    COMMAND                  CREATED        STATUS                  PORTS                                                                                  NAMES
  9774a1a6322c   traefik:latest           &quot;/entrypoint.sh --ap…&quot;   1 second ago   Up Less than a second   80/tcp                                                                                 traefik
  </code></pre>
  <p>With another container (that is not under my control an I can't seem to find out how it's started), the ports were forwarded correctly:</p>
  <pre><code>a04b40299a8f   portainer/portainer-ce   &quot;/portainer&quot;             7 days ago     Up 3 minutes            0.0.0.0:8000-&gt;8000/tcp, :::8000-&gt;8000/tcp, 0.0.0.0:9000-&gt;9000/tcp, :::9000-&gt;9000/tcp   portainer
  </code></pre>
  <p>This one is also reachable using the IPv6 address of the host (as expected).
  How can I achieve this for the first container?</p>