This repository provides a Docker Compose setup for running a self-hosted Gatus instance, a beautiful and automated service health dashboard.
- Works out of the box: Just configure the
.envfile and run the start script. - Persistent Storage: Uses PostgreSQL to store health check results and history.
- Ready-to-use Scripts: Includes simple scripts to restart and update the application.
- Database Backups: Comes with a script to easily back up the PostgreSQL database.
- Shared Network: Pre-configured to use a shared network for easy integration with other services.
-
Clone the repository:
git clone https://github.com/AiratTop/gatus-self-hosted cd gatus-self-hosted -
Create the shared network: If you haven't already, create the shared Docker network:
docker network create shared_network
-
Configure the environment: Create a
.envfile and set thePSQL_PWDvariable for your PostgreSQL database password. -
Start the service:
docker compose up -d
- Start:
docker compose up -d - Restart:
./restart-docker.sh - Update:
./update-docker.sh(Pulls the latest Docker image and restarts the container) - Backup:
./backup.sh(Creates a compressed backup in thebackupsdirectory)
This project includes a script to back up the Gatus database.
To create a backup, run:
./backup.shThis will create a compressed SQL dump of your PostgreSQL database in the backups/ directory. It is recommended to run this script regularly (e.g., using a cron job).
This Gatus setup is part of a larger ecosystem of self-hosted services that can all run on the same shared_network. This allows Gatus to monitor them securely using their container names as hostnames.
Check out other self-hosted solutions:
- postgresql-self-hosted: A simple and robust PostgreSQL setup.
- mysql-self-hosted: A self-hosted MySQL instance.
- clickhouse-self-hosted: High-performance columnar database for analytics.
- metabase-self-hosted: Self-hosted Metabase on Docker for business intelligence and analytics.
- qdrant-self-hosted: A vector database for AI applications.
- redis-self-hosted: A fast in-memory data store, often used as a cache or message broker.
- caddy-self-hosted: A modern, easy-to-use web server with automatic HTTPS.
- wordpress-self-hosted: Production-ready WordPress stack with MySQL, phpMyAdmin, and WP-CLI.
- n8n-self-hosted: Scalable n8n with workers, Caddy for auto-HTTPS, and backup scripts.
- monitoring-self-hosted: Self-hosted monitoring stack with Prometheus and Grafana.
- ollama-self-hosted: Ready-to-use solution for running Ollama with the Open WebUI on Docker.
- authentik-self-hosted: Authentik is a flexible, open-source Identity & Access Management (IAM) solution.
- gatus-self-hosted: Automated service health dashboard with a PostgreSQL backend and backup scripts.
- beszel-self-hosted: Ready-to-run Beszel hub + agent stack for monitoring your infrastructure.
gatus: The Gatus health dashboard application.gatus-psql: PostgreSQL database for data storage.
This project is licensed under the MIT License - see the LICENSE file for details.
AiratTop
- Website: airat.top
- GitHub: @AiratTop
- Email: mail@airat.top
- Repository: gatus-self-hosted