title: password authentication failed for user "postgres" with docker-compose up on EC2
body: <p>On EC2 linux server create by docker-machine, when I launch docker postgres:10.6 by <strong>docker-compose up</strong>, I have these loop errors :</p>
  <pre><code>FATAL:  password authentication failed for user &quot;postgres&quot;
  DETAIL:  Password does not match for user &quot;postgres&quot;.
  Connection matched pg_hba.conf line 95: &quot;host all all all md5&quot;
  </code></pre>
  <p>I don't have these errors if I start container manually
  =&gt; docker run -e POSTGRES_PASSWORD=myPassword postgres:10.6</p>
  <p>I don't have these errors in my local docker.</p>
  <p>My docker-compose :</p>
  <pre class="lang-yaml prettyprint-override"><code>db:
    container_name: postgres
    image: postgres:10.6
    restart: always
    environment:
      POSTGRES_PASSWORD: myPassword
    ports:
      - &quot;5432:5432&quot;
  </code></pre>
  <p>Does anyone know how to fix this?</p>