title: Where is the pgpass file in pgadmin4 docker container when this file is mounted as a volume
body: <p>I'm using the following image <a href="https://hub.docker.com/r/dpage/pgadmin4/" rel="nofollow noreferrer">https://hub.docker.com/r/dpage/pgadmin4/</a> to set up pgAdmin4 on Ubuntu 18-04.</p>
  <p>I have mounted a volume containing a <code>pgpass</code> file (which was also <code>chmod</code> for the <code>pgadmin</code> user inside the container) as you can see in my Compose file:</p>
  <pre><code>version: '3.8'
  services:
    pgadmin4:
      image: dpage/pgadmin4
      container_name: pgadmin4
      environment:
        - PGADMIN_DEFAULT_EMAIL=me@localhost
        - PGADMIN_DEFAULT_PASSWORD=******************
        - PGADMIN_LISTEN_PORT=5050
        - PGADMIN_SERVER_JSON_FILE=servers.json
      volumes:
        - ./config/servers.json:/pgadmin4/servers.json # &lt;-- this file is well taken into account
        - ./config/pgpass:/pgpass # &lt;- there is no way to find this one on the other hand
      ports:
        - &quot;5000:5000&quot;
      restart: unless-stopped
      network_mode: host
  </code></pre>
  <p>But the it seems it's not recognized from the pgadmin webpage when I right click on a server and check its Advanced properties:</p>
  <p><a href="https://i.stack.imgur.com/pgN4r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pgN4r.png" alt="no pgpass file in pgadmin interface" /></a></p>
  <p>And if I manually specify <code>/pgpass</code> in the top greenish box where there's only a slash in the image, it says:</p>
  <p><a href="https://i.stack.imgur.com/62Jt1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/62Jt1.png" alt="pgpass not found" /></a></p>
  <p>But if I log into the container, I can actually list that file:</p>
  <pre><code>/ $ ls -larth /pgpass
  -rw-------    1 pgadmin  pgadmin      574 Mar 10 22:37 /pgpass
  </code></pre>
  <p>What did I do wrong?<br />
  How can I get the <code>pgpass</code> file to be recognized by the application?</p>