title: Docker compose doesn't expose port 80 for a Linked Service setup
body: <p>Here's the docker compose file</p>
  
  <pre><code>version: '3.3'
  
  services:
     db:
       image: mysql:5.7
       volumes:
         - blog-vol:/var/lib/mysql
       restart: always
       environment:
         MYSQL_ROOT_PASSWORD: mysqlpass
         MYSQL_DATABASE: wordpress
         MYSQL_USER: wpuser
         MYSQL_PASSWORD: mysqluserpass
  
     wordpress:
       depends_on:
         - db
       image: wordpress:latest
       ports:
         - "80:80"
       restart: always
       environment:
         WORDPRESS_DB_HOST: db:3306
         WORDPRESS_DB_USER: wpuser
         WORDPRESS_DB_PASSWORD: mysqluserpass
  volumes:
      blog-vol:
  </code></pre>
  
  <p>I bring it up doing the usual</p>
  
  <pre><code>docker-compose up -d
  </code></pre>
  
  <p>For some reason <a href="http://localhost" rel="nofollow noreferrer">http://localhost</a> (port 80) or <a href="http://my_private_ip" rel="nofollow noreferrer">http://my_private_ip</a> (port 80) doesn't resolve when it's up.</p>
  
  <p>However when I change the "ports" config in the above to</p>
  
  <pre><code>ports:
   -"8000:80"
  </code></pre>
  
  <p><a href="http://localhost:8000" rel="nofollow noreferrer">http://localhost:8000</a> and <a href="http://my_private_ip:8000" rel="nofollow noreferrer">http://my_private_ip:8000</a> do work. Not sure what's going on with port 80. I do see that it's available. I tested port 80 by running an nginx instance by doing</p>
  
  <pre><code>docker run -p 80:80 -d nginx
  </code></pre>
  
  <p>This nicely exposes the service at port 80. I'm not sure what's going on with the above docker-compose config. Am I missing something here?</p>