This is a simple container that will perform a GET call against a URL and log the response code. It is intended to be used with services that require a heartbeat such as Uptime Robot, etc.
These instructions will cover usage information and for the docker container
In order to run this container you'll need docker installed.
Call https://example.com every 2 minutes with a 5 second timeout:
docker run as6o/url-heartbeat:latest -e URL=https://example.com -e PERIOD=120 -e TIMEOUT=5
URL
- The URL that will be called via GET (default: )PERIOD
- The period in seconds between calls (default: 60)TIMEOUT
- The timeout in seconds for the call (default: 2.0)
Messages are sent to stdout and errors are sent to stderr.
- Aaron Siri - Initial work - as6o
This project is licensed under the MIT License - see the LICENSE.md file for details.