title: How can I check postgres database in docker volume?
body: <p>I followed the tutorial from <a href="https://www.prisma.io/docs/1.34/get-started/01-setting-up-prisma-new-database-JAVASCRIPT-a002/" rel="nofollow noreferrer">prisma.io</a> to get started building a local server.</p>
  
  <p>Follow the <code>docker-compose.yml</code>:</p>
  
  <pre><code>version: '3'
  services:
    prisma:
      image: prismagraphql/prisma:1.34
      restart: always
      ports:
        - '4466:4466'
      environment:
        PRISMA_CONFIG: |
          port: 4466
          databases:
            default:
              connector: postgres
              host: postgres
              port: 5432
              user: prisma
              password: prisma
    postgres:
      image: postgres:10.3
      restart: always
      environment:
        POSTGRES_USER: prisma
        POSTGRES_PASSWORD: prisma
      volumes:
        - postgres:/var/lib/postgresql/data
  volumes:
    postgres: ~
  </code></pre>
  
  <p>I builded two docker containers, one is prisma server, the other is postgres database.</p>
  
  <p>As I thought after command <code>prisma depoly</code> the Model User should create a users table in the database.</p>
  
  <p>But I try to check the schema in the database and got the result:</p>
  
  <pre><code>docker exec -it myContainer psql -U prisma
  postgres=# \l
                                   List of databases
     Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges   
  -----------+----------+----------+------------+------------+-----------------------
   postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 | 
   prisma    | postgres | UTF8     | en_US.utf8 | en_US.utf8 | 
   template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
             |          |          |            |            | postgres=CTc/postgres
   template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
             |          |          |            |            | postgres=CTc/postgres
  (4 rows)
  prisma=# \z // or postgres=# \z
  
                              Access privileges
   Schema | Name | Type | Access privileges | Column privileges | Policies
  --------+------+------+-------------------+-------------------+----------
  (0 rows)
  
  prisma=# \dt or postgres=# \dt
  Did not find any relations.
  </code></pre>
  
  <p>Then I tried to check the volume folder in the VM machine</p>
  
  <pre><code>docker run -it --rm --privileged --pid=host justincormack/nsenter1
  /var/lib/docker/volumes/first_prisma_postgres/_data # ls
  PG_VERSION            pg_commit_ts          pg_ident.conf         pg_notify             pg_snapshots          pg_subtrans           pg_wal                postgresql.conf
  base                  pg_dynshmem           pg_logical            pg_replslot           pg_stat               pg_tblspc             pg_xact               postmaster.opts
  global                pg_hba.conf           pg_multixact          pg_serial             pg_stat_tmp           pg_twophase           postgresql.auto.conf  postmaster.pid
  </code></pre>
  
  <p>The data exactly exist at the VM machine, but how can I checked the data or made dump backup from it? </p>