Sign inSign up

codethier/fastapi_gunicorn

By codethier

Updated over 3 years ago

Image
0

406

codethier/fastapi_gunicorn repository overview

  1. make an app that start from app.py, make requirements.txt as well (pip freeze > requirements.txt) there is no need to add gunicorn
  2. the container will be listening on 8000
  3. upload your app to a folder for me it will be /app
  4. docker run -v /app:/app --restart=unless-stopped -d -p 127.0.0.1:9500:8000 codethier/fastapi_gunicorn

enviroment variables:

-e "worker_count=8"

-e "port=8000"

-e "timeout=60"

Tag summary

Content type

Image

Digest

sha256:14fea4f5e

Size

335.6 MB

Last updated

over 3 years ago

docker pull codethier/fastapi_gunicorn