Does "ports" on docker-compose.yml have the same effect as EXPOSE on Dockerfile?
<p>Does declaring on a docker-compose.yml:</p>

<pre><code>ports:
 - "3306:3306"
</code></pre>

<p>and on Dockerfile:</p>

<pre><code>EXPOSE 3306
</code></pre>

<p>have the same effect?</p>