We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b52251 + ddbf40d commit a1405e4Copy full SHA for a1405e4
.gitpod.yml
@@ -1,4 +1,2 @@
1
tasks:
2
- - init: pip install -r requirements.txt
3
-
4
+ - init: docker-compose up
README.md
@@ -49,7 +49,14 @@ This example uses the Web Server Gateway Interface (WSGI) with FastApi to enable
49
50
## Running Locally
51
52
+### With Docker Compose
53
+
54
+```bash
55
+docker-compose up
56
+```
57
58
### With Docker
59
60
```bash
61
# Build the Docker image
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
67
74
pip install -r requirements.txt
68
75
```
76
69
77
70
78
uvicorn main:app --host 0.0.0.0 --port 8000
71
79
docker-compose.yml
@@ -0,0 +1,5 @@
+services:
+ web:
+ build: .
+ ports:
5
+ - "8000:8000"
0 commit comments