|
|
@ -1,5 +1,11 @@
|
|
|
|
# Postgres w/ Docker Compose
|
|
|
|
# Postgres w/ Docker Compose
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Super User Authentication
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Username: `root`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Password: `password`
|
|
|
|
|
|
|
|
|
|
|
|
## Enter the Container w/ Bash
|
|
|
|
## Enter the Container w/ Bash
|
|
|
|
|
|
|
|
|
|
|
|
`docker-compose exec --user root db /bin/bash`
|
|
|
|
`docker-compose exec --user root db /bin/bash`
|
|
|
@ -8,16 +14,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
`docker-compose exec --user root db psql -h localhost -U root`
|
|
|
|
`docker-compose exec --user root db psql -h localhost -U root`
|
|
|
|
|
|
|
|
|
|
|
|
## Super User Authentication
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Username: `root`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Password: `password`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Create a DB
|
|
|
|
## Create a DB
|
|
|
|
|
|
|
|
|
|
|
|
While inside the shell, run the following:
|
|
|
|
While inside the shell, run the following:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
CREATE DATABASE mydatabase;
|
|
|
|
CREATE DATABASE "mydatabase";
|
|
|
|
```
|
|
|
|
```
|
|
|
|