From 9f6370d49d16cc445867f9be2334be5d8f6b89ad Mon Sep 17 00:00:00 2001 From: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com> Date: Wed, 1 Jan 2025 09:59:28 +0530 Subject: [PATCH] fix: docker compose cmd --- fastapi-postgres/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fastapi-postgres/README.md b/fastapi-postgres/README.md index b1ccbf3..56fd7e2 100644 --- a/fastapi-postgres/README.md +++ b/fastapi-postgres/README.md @@ -29,10 +29,10 @@ curl -O -L https:///keploy.io/install.sh && source install.sh ```bash # Start the application -docker-compose up -d +docker-compose up -d postgres ``` -> **Since we have setup our sample-app natively, we need to update the container name to postgres on line 6, in `application/database.py`, from `postgresql://postgres:postgres@localhost:5432/studentdb` to `postgresql://postgres:postgres@postgres:5432/studentdb`.** +> **If we have setup our sample-app with docker, we need to update the container name to postgres on line 6, in `application/database.py`, from `postgresql://postgres:postgres@localhost:5432/studentdb` to `postgresql://postgres:postgres@postgres:5432/studentdb`.** > **Also, we need to update the container name to postgres on line 11, of `application/main.py`, from `postgresql://postgres:postgres@localhost:5432/studentdb` to `postgresql://postgres:postgres@postgres:5432/studentdb`.** @@ -119,4 +119,3 @@ We will get output something like below - By making just 2 api call, we have generated a complete test suite for our application and acheived 72% coverage. So, no need to setup fake database/apis like Postgres or write mocks for them. Keploy automatically mocks them and, **The application thinks it's talking to Postgres 😄** -