Skip to content

Installation

How to install

  • Run the following command in your command line to run the server
uvicorn main:app

How to install (Docker-compose)

  • Run the following command in your command line to run the server
docker-compose up
  • Or run the server in the background
docker-compose up -d
  • The port can be changed at docker-compose.override.yml
version: '3'
services:
  web:
    container_name: "covid19_api_web_container"
    volumes:
      - ./app:/app
    ports:
      - "80:80"
    environment:
      - 'RUN=uvicorn main:app'

How to install (from Dockerhub)

  • Download the latest image
docker pull nat236919/covid19-api:latest
  • Create a container and run
docker run nat236919/covid19-api