-
I am not exactly sure why this is happening, but for some reason the endpoint All other endpoints are working fine (serviced by my FastAPI instance) - including My project structure is shown below.
Here is my main.py file
And below is my docker-compose.yml I have specified a
Perhaps even stranger, the docs ARE protected 🤯 as in they use it is protected behind the No sure how to resolve this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's probably because of some labels in the Traefik proxy, so it would be more related to that than to this image. On the other hand, now that Uvicorn supports managing workers with Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image That should also make it easier to debug all these things. |
Beta Was this translation helpful? Give feedback.
It's probably because of some labels in the Traefik proxy, so it would be more related to that than to this image.
On the other hand, now that Uvicorn supports managing workers with
--workers
, including restarting dead ones, there's no need for Gunicorn. That also means that it's much simpler to build a Docker image from scratch now, I updated the docs to explain it.Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image
That should also make it easier to debug all these things.