Skip to content

Commit 941578a

Browse files
authored
Update PostgreSQL.md
updated with a few steps I had to search for when first setting up postgres
1 parent 9cc8533 commit 941578a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/Containers/PostgreSQL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@
55
## About
66
PostgreSQL is an SQL server, for those that need an SQL database. The database credentials can be found in the file `./volumes/postgres/postgres.env`. It is highly recommended to change the user, password and default database
77

8+
If you left the docker-compose.yml file with the default values, you can interact with the postgress in the container with the follwoing command, replacing `<<raspberypi ip>>` with the ip address to your RasperyPi.
9+
`docker exec -it postgres psql -h <<raspberypi ip>> -d postdb -U postuser`
10+
11+
Once you have logged in you should change the default password to postuser replacing `<<password>>` with your new password.
12+
`ALTER USER postuser WITH PASSWORD '<<password>>';`
13+
14+
You can find more information about working with postgres at https://www.postgresql.org/docs/8.0/.

0 commit comments

Comments
 (0)