You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
373 B
24 lines
373 B
# PostgreSQL w/ Docker Compose
|
|
|
|
## Super User Authentication
|
|
|
|
Username: `root`
|
|
|
|
Password: `password`
|
|
|
|
## Enter the Container w/ Bash
|
|
|
|
`docker-compose exec --user root db /bin/bash`
|
|
|
|
## Enter the Postgres Shell
|
|
|
|
`docker-compose exec --user root db psql -h localhost -U root`
|
|
|
|
## Create a DB
|
|
|
|
While inside the shell, run the following:
|
|
|
|
```
|
|
CREATE DATABASE "mydatabase";
|
|
```
|