diff --git a/fastapi-postgres/README.md b/fastapi-postgres/README.md index ebe959d..b1ccbf3 100644 --- a/fastapi-postgres/README.md +++ b/fastapi-postgres/README.md @@ -32,6 +32,10 @@ curl -O -L https:///keploy.io/install.sh && source install.sh docker-compose up -d ``` +> **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`.** + +> **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`.** + ### Capture the Testcases This command will start the recording of API calls : diff --git a/fastapi-postgres/docker-compose.yml b/fastapi-postgres/docker-compose.yml index 80ec447..fd49830 100644 --- a/fastapi-postgres/docker-compose.yml +++ b/fastapi-postgres/docker-compose.yml @@ -3,6 +3,7 @@ services: postgres: image: postgres:latest + container_name: postgres environment: POSTGRES_DB: studentdb POSTGRES_USER: postgres @@ -30,4 +31,4 @@ services: networks: keploy-network: - external: true \ No newline at end of file + external: true