tiangolo / uvicorn-gunicorn-fastapi-docker

Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python with performance auto-tuning.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to pass "live auto-reload option" with docker-compose

opened this issue · comments

hello there,

  • Is it possible to pass live auto-reload option (/start-reload.sh) to our docker-compose.yml file?
  • Is it possible to pass live auto-reload option (/start-reload.sh) to the docker-compose up -d command?

many thanks

I have updated my dockerfile as below and solved my issue

FROM tiangolo/uvicorn-gunicorn:python3.8-slim

RUN pip install --no-cache-dir fastapi

COPY ./app /app

CMD [ "/start-reload.sh" ]