title: Use domains instead of ports for multiple Docker containers
body: <p>I'm working on creating Docker environment for multiple websites. I've decided to have for each domain separate <code>docker-compose.yml</code> file with multiple containers. At the moment I have something like this:</p>
  
  <pre><code>web:
    image: nginx:latest
    volumes:
      - /c/Users/marcin/dock-test/html/test-laravel-project-2/:/usr/share/nginx/html/test-laravel-project-2/
      - /c/Users/marcin/dock-test/nginx-conf/conf.d2/:/etc/nginx/conf.d
      - /c/Users/marcin/dock-test/nginx-log/:/var/log/nginx
    ports:
      - "8088:80"
    working_dir: /usr/share/nginx/html/test-laravel-project-2/
    links:
      - php
      - db
    container_name: lara.web
    environment:  
      - VIRTUAL_HOST='l2.app'
      - VIRTUAL_NETWORK='nginx-proxy'
    expose:
      - 8088
  php:
    build: ../dockerfiles/
    dockerfile: Dockerfile-php7-fpm
    volumes:
      - /c/Users/marcin/dock-test/html/test-laravel-project-2/:/usr/share/nginx/html/test-laravel-project-2/
      - /c/Users/marcin/dock-test/php-config/:/usr/local/etc/php/
    working_dir: /usr/share/nginx/html/
    links:
      - db
    container_name: lara.php
  db:
    image: mysql:5.7
    environment:
      MYSQL_ROOT_PASSWORD:
      MYSQL_DATABASE:
      MYSQL_USER: 
      MYSQL_PASSWORD:   
    expose:
       - 3306
    volumes:
      - /c/Users/marcin/dock-test/mysql2/:/var/lib/mysql/
      - /c/Users/marcin/dock-test/mysql-log2/:/var/log/mysql/
    ports:
      - "33062:3306"
    container_name: lara.db
  </code></pre>
  
  <p>This is working fine, but I've wanted to use domain for this because at the moment I need to use 8088 port like so: <code>http://192.168.99.100:8088</code>. Obviously I can in above config use <code>80:80</code> mapping but let's assume I want to use 8088 port (because for multiple sites I will need to use different port for each website).</p>
  
  <p>And now the problem - how can I use domain instead of IP with port? I've added to my Windows (I'm using Windows as OS) <code>l2.app</code> with mapping to <code>192.168.99.100</code>, but I still need to use it like this: <code>http://l2.app:8088</code>.</p>
  
  <p>I've also tried <code>nginx-proxy</code> like this:</p>
  
  <pre><code>docker pull jwilder/nginx-proxy
  docker-compose up -d
  docker run -d -p 80:8088 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
  </code></pre>
  
  <p>but when I try to access website using <code>http://l2.app</code> I'm getting <code>503</code> and obviously when I'm using <code>http://l2.app:8088</code> everything is fine.</p>
  
  <p>I assume I probably misconfigured something with port mapping for <code>nginx-proxy</code> but have no clue in which place the mapping is incorrect. Could you please give me advice for this?</p>