File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
tasks :
2
- - init : pip install -r requirements.txt
3
-
4
-
2
+ - init : docker-compose up
Original file line number Diff line number Diff line change @@ -49,7 +49,14 @@ This example uses the Web Server Gateway Interface (WSGI) with FastApi to enable
49
49
50
50
## Running Locally
51
51
52
+ ### With Docker Compose
53
+
54
+ ``` bash
55
+ docker-compose up
56
+ ```
57
+
52
58
### With Docker
59
+
53
60
``` bash
54
61
# Build the Docker image
55
62
docker build -t deploy-python-fastapi-in-vercel .
@@ -66,6 +73,7 @@ docker run -p 8000:8000 deploy-python-fastapi-in-vercel
66
73
``` bash
67
74
pip install -r requirements.txt
68
75
```
76
+
69
77
``` bash
70
78
uvicorn main:app --host 0.0.0.0 --port 8000
71
79
```
Original file line number Diff line number Diff line change
1
+ services :
2
+ web :
3
+ build : .
4
+ ports :
5
+ - " 8000:8000"
You can’t perform that action at this time.
0 commit comments