diff --git a/.gitpod.yml b/.gitpod.yml index 3c0c831..57df11a 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,4 +1,2 @@ tasks: - - init: pip install -r requirements.txt - - + - init: docker-compose up diff --git a/README.md b/README.md index 7c6b468..9b013e5 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,14 @@ This example uses the Web Server Gateway Interface (WSGI) with FastApi to enable ## Running Locally +### With Docker Compose + +```bash +docker-compose up +``` + ### With Docker + ```bash # Build the Docker image docker build -t deploy-python-fastapi-in-vercel . @@ -66,6 +73,7 @@ docker run -p 8000:8000 deploy-python-fastapi-in-vercel ```bash pip install -r requirements.txt ``` + ```bash uvicorn main:app --host 0.0.0.0 --port 8000 ``` diff --git a/docker-compose.yml b/docker-compose.yml index e69de29..677df3b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +services: + web: + build: . + ports: + - "8000:8000" \ No newline at end of file