Skip to content

Commit 83cb602

Browse files
committed
Updated readme for env example
1 parent 213a4c2 commit 83cb602

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,21 @@ Ensure you have the following installed on your machine:
2121
git clone https://github.com/sudan94/fastapi-postgres-docker.git
2222
cd fastapi-postgres-docker
2323
```
24-
25-
2. Build and run the Docker containers:
24+
2. Update the .env file with your database credentials:
25+
```js
26+
POSTGRES_USER=your_username
27+
POSTGRES_PASSWORD=your_password
28+
POSTGRES_SERVER=your_postgres_servername
29+
POSTGRES_PORT=your_postgres_running_port
30+
POSTGRES_DB=your_database
31+
```
32+
3. Build and run the Docker containers:
2633

2734
```bash
2835
docker-compose up -d
2936
```
3037

31-
Usage
38+
### Usage
3239
After running ```docker-compose up -d```, your FastAPI application will be accessible via NGINX at http://localhost:8080/fastapi/docs.
3340

3441
---

0 commit comments

Comments
 (0)