Skip to content

Prashanna313/fastapi-docker

Repository files navigation

FastAPI-DOCKER

  • To setup this repo in local system, clone the repo and run local_setup.sh script
  • Activate the python virtual environment source venv/bin/python

Building docker images

  • set VERSION as env var, for linux based
    • export VERSION=1
  • Run the docker build command
    • docker build -t fastapi_sample:${VERSION} .

Deploying the container

  • This repo contains the terraform config for deploying ECS task definition & ECS service

Accessing it locally

  • Once we've built the image, we can reference it in backend service defined in docker-compose.yaml
  • To start backend service, use
    • docker-compose up -d backend

About

Docker deployment with FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published