title: Docker Compose network_mode and port_binding compatibility issue
body: <p>My docker-compose.yml contains this:</p>
  <pre><code>version: '3.2'
  services:
    mysql:
      image: mysql:latest
      container_name: mysql
      restart: always
      network_mode: &quot;host&quot;
      hostname: localhost
      environment:
        MYSQL_ROOT_PASSWORD: root
        MYSQL_ALLOW_EMPTY_PASSWORD: &quot;yes&quot;
      volumes:
        - $HOME/data/datasql:/var/lib/mysql
      ports:
        - 3306:3306
  
    user-management-service:
      build: user-management-service/
      container_name: user-management-service
      restart: always
      depends_on:
        - mysql
        - rabbitmq
        - eureka
      network_mode: &quot;host&quot;
      hostname: localhost
      ports:
        - 8089:8089
  </code></pre>
  <p>When I try to do docker-compose up, I get the following error:</p>
  <pre><code>&quot;host&quot; network_mode is incompatible with port_bindings
  </code></pre>
  <p>Can anyone help me with the solution?</p>