Render
Render can build and deploy the API Dockerfile as a Web Service. Its Web Services must
listen on 0.0.0.0; azanAPI’s container already does so on port 8000.
Deploy from the API repository
-
Push the API repository, including
Dockerfile, to GitHub. -
In Render, choose New then Web Service and connect that repository.
-
Set the runtime/language to Docker so Render builds the repository Dockerfile.
-
Use the default Docker command; it runs the Dockerfile’s Uvicorn
CMD. -
Set the service health-check path to
/health. -
Add environment variables only when needed:
APP_NAME=Prayer Timing API APP_VERSION=0.1.0 APP_ENVIRONMENT=production APP_DEBUG=false LOG_LEVEL=INFO -
Deploy and call
<your-service>.onrender.com/healthbefore using a prayer-times endpoint.
Render supports Dockerfile builds, and its Web Services can use HTTP health checks to delay traffic until the service is ready. Render Docker documentation and Render health-check documentation cover the current dashboard settings.
Verify after deploy
curl https://YOUR_SERVICE.onrender.com/health
curl --get https://YOUR_SERVICE.onrender.com/api/v1/prayer-times \
--data-urlencode latitude=25.2048 \
--data-urlencode longitude=55.2708 \
--data-urlencode timezone=Asia/Dubai \
--data-urlencode calculation_method=dubaiDo not expose an unauthenticated development server directly. This API currently has no built-in authentication or rate limiting, so decide intentionally whether a public endpoint fits your use case.