Skip to content

Repository files navigation

Gatus Self-Hosted with Docker

gatus-self-hosted

This repository provides a Docker Compose setup for running a self-hosted Gatus instance, a beautiful and automated service health dashboard.

Live site: https://status.airat.top

Features

  • Works out of the box: Just configure the .env file 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.

Getting Started

  1. Clone the repository:

    git clone https://github.com/AiratTop/gatus-self-hosted
    cd gatus-self-hosted
  2. Create the shared network: If you haven't already, create the shared Docker network:

    docker network create shared_network
  3. Configure the environment: Create a .env file and set the PSQL_PWD variable for your PostgreSQL database password. You can use my Open Source password generator to create a strong password.

  4. Start the service:

    docker compose up -d

Usage

  • 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 the backups directory)

Backup

This project includes a script to back up the Gatus database.

To create a backup, run:

./backup.sh

This 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).

Connecting to Other Services

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.

See Also

Check out other self-hosted solutions:

Services

  • gatus: The Gatus health dashboard application.
  • gatus-psql: PostgreSQL database for data storage.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Author

AiratTop

About

Production-ready Docker Compose setup for a self-hosted Gatus health dashboard. Includes PostgreSQL for persistent storage, backup scripts, and easy integration with other services.

Topics

Resources

Code of conduct

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages