Skip to content

Commit ddbf40d

Browse files
committed
Refactor README for Docker instructions
Consolidated Docker setup instructions in README for clarity and ease of use. Now users can easily choose between Docker Compose and traditional Docker methods when running the application locally. This streamlining improves the user experience. Issue #123
1 parent 0e6c4a0 commit ddbf40d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ This example uses the Web Server Gateway Interface (WSGI) with FastApi to enable
4949

5050
## Running Locally
5151

52+
### With Docker Compose
53+
54+
```bash
55+
docker-compose up
56+
```
57+
5258
### With Docker
59+
5360
```bash
5461
# Build the Docker image
5562
docker build -t deploy-python-fastapi-in-vercel .
@@ -66,6 +73,7 @@ docker run -p 8000:8000 deploy-python-fastapi-in-vercel
6673
```bash
6774
pip install -r requirements.txt
6875
```
76+
6977
```bash
7078
uvicorn main:app --host 0.0.0.0 --port 8000
7179
```

0 commit comments

Comments
 (0)