Go healthcheck is an opensource healthcheck system that ensures your HTTP applications are up and running.
Katacoda tutorial : https://www.katacoda.com/ghiltoniel/scenarios/2
Create the docker-compose.yml file :
version: '3.1'
services:
go-healthcheck:
build: .
image: ghiltoniel/go-healthcheck
ports:
- 8080:8080
volumes:
- ./config_docker.yml:/go/src/app/config.yml
environment:
- DB.TYPE=sqlite3
- DB.PATH=data.db
Then run :
docker-compose up
Go to http://localhost:8080/app to see your dashboard
The configuration can be set in any of the following places :
- config.yml file at the root of the source
- config.yml file inside %HOME%/.go-healthcheck/
- config.yml file in /etc/go-healthcheck/
- in the environment variables (using capitalize letters, ex : DB.TYPE=sqlite3)
- history:
- enabled: true if you want the check history to be saved into db, false if you want to keep only latest check
- db:
- type: mysql / sqlite3 / postgres
- username: the database username
- password: the database password
- host: the database host
- port: the database port
- name: the database name
- path: the file database path (for sqlite3)
- smtp:
- host: the smtp host
- port: the smtp port
- username: the smtp username
- password: the smtp password
- from: the from email field
- to: the to email field for notification
- authentication:
- enabled: is authentication enabled
- username: the administrator username
- password: the administrator password
- Notification by API calls
- Test coverage