Skip to content

Commit ac7c6a4

Browse files
committed
add note about postgres from docker
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
1 parent e45e42e commit ac7c6a4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ poetry shell
3333

3434
## Usage
3535

36+
This example uses [PostgreSQL](https://www.postgresql.org/) as the database. If
37+
you dont have a local PostgreSQL database running, you can start one with
38+
[Docker](https://www.docker.com) using the following command:
39+
40+
```bash
41+
docker exec -it postgres psql -U postgres
42+
```
43+
44+
This will run a PostgreSQL database in a Docker container in the background.
45+
When you are finished and want to stop the database, run:
46+
47+
```bash
48+
docker stop postgres
49+
```
50+
3651
Run the server using `Uvicorn`:
3752

3853
```bash

0 commit comments

Comments
 (0)