How do I make sure Docker django site is accessible via url even after extended period of inactivity on server?
I have deployed a Django REST API using Docker on AWS EC2 instance. Due to low traffic on site api sees the extended period of inactivity and it throughs 503 error (Service Unavailable). The aws logs are ok with no signs of throttle. How do I make sure my service is always available without me needing to manually restart the docker?
You can use Docker container HEALTHCHECK or docker-compose healthcheck