How to query the database? #1808
|
For everyone who has the same issues as me. 1. Connect to the database server via pgadminOnce the host: db Please note NOT to use 2. Query user tableMake sure to put the table name in quotes! select * from "user";If you just do 3. Connect to the database server via psqlWe need to expose the db port to the host system (aka your laptop). In the docker-compose.yml do this: If you don't do this you will see the following error: After the change, you can connect now via: |
Answered by
YuriiMotov
Aug 30, 2025
Replies: 1 comment
|
It's simpler in current version:
The interface is quite intuitive |
0 replies
Answer selected by
YuriiMotov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's simpler in current version:
PostgreSQLdb(name of the service in docker-compose)postgres(value ofPOSTGRES_USERin your .env file)***(value ofPOSTGRES_PASSWORDin your .env file)POSTGRES_DBin your .env file)The interface is quite intuitive