connect docker inventree-db (postgres)? #7214
-
following instruction https://docs.inventree.org/en/latest/start/docker_install/ to setup dev environment, looking for some way to access the DB (postgres). under
the server is accessible in http://inventree.localhost/index/ (which is expected!) I'd like to check the data in postgres DB, how to connect to DB?
it's not working. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@movelikeriver you need to exec docker exec -it inventree-db psql -U pguser -W inventree This should get you into the postgresql shell. |
Beta Was this translation helpful? Give feedback.
@movelikeriver you need to exec
psql
within the database container. Assuming you are using the default config:docker exec -it inventree-db psql -U pguser -W inventree
This should get you into the postgresql shell.