Inspect the mangum handled API locally on in Docker container on open port #297
Ammar-Azman
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Details
I have created API by using FastAPI and handle it using Mangum. I containerized it using Dockerfile and expose it on port 8000. My CMD line will be
The handler worked well with the following output
Before I used Mangum, I can inspect the API on the connected port with the following Dockerfile line
Question
How can I inspect the API on port 8000 like I can do when running without Mangum? I have tried to include the port in
CMD ["prod.main_api.handler"]
, but it only allowed single params compare to run with uvicorn. Anyone can help me? Thank you.Beta Was this translation helpful? Give feedback.
All reactions