Implement a HEALTHCHECK for the whole application. We are doing the same for the index.
The goal is to add a line similar to this:
HEALTHCHECK --interval=5s --timeout=5s --start-period=3s --retries=3 \
CMD /usr/bin/health_check --http http://localhost:${API_PORT}/health_check \
&& /usr/bin/health_check --http http://localhost:${HTTP_PORT}/health_check \
&& /usr/bin/health_check --udp udp://localhost:${UDP_PORT} \
|| exit 1
So when you run the tracker in a container, it can show its status (healthy or not).
For the HTTP tracker and Tracker API, we can add health_check endpoints like in the Index.
For the UDP Tracker, maybe we can try to connect.
Implement a HEALTHCHECK for the whole application. We are doing the same for the index.
The goal is to add a line similar to this:
So when you run the tracker in a container, it can show its status (healthy or not).
For the HTTP tracker and Tracker API, we can add
health_checkendpoints like in the Index.For the UDP Tracker, maybe we can try to connect.