FerryDocs

Connect to the database yourself

Open psql in the container of the datastore, or connect from your machine through an SSH tunnel.

Edit on GitHub
Your serverSSH tunnelYour machinepsqlServer port127.0.0.1:62975notes-dbferry-ds-notes-db
From your machine, the path goes through an SSH tunnel

From the server

Open in the of the .

Terminal
docker exec -it ferry-ds-notes-db psql -U notes_db notes_db

The name of the container is <prefix>-ds-<name>. With the default prefix, it is ferry-ds-notes-db.

From your machine

Use the that ferry db show notes-db prints. Its port is open only on 127.0.0.1 of the server. Thus make an first.

Terminal
ssh -L 62975:127.0.0.1:62975 you@your-server
psql 'postgresql://notes_db:…@127.0.0.1:62975/notes_db'

On this page