Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 905 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 905 Bytes

FastAPI Micro Service with Docker, Nginx, and Asynchronous MongoDB (Motor)

Installation Instructions

  • Create a virtual environment
  • Install the Python dependencies with
    pip install -r requirements.txt
  • Copy the .env.example file as .env
    cp .env.example .env
  • Ensure that you fill in all the valid environment properties in the .env file.

Run Locally

  • To run the service locally, use the following command:
    uvicorn server:app --reload

Run with Docker

  • To run the service using Docker, use the following command:
      sudo docker-compose up -d --build

Run Docker Compose for Production Build