mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
docs: Add example of docker-compose with multiple configuration files
This commit is contained in:
parent
3059e3e028
commit
4225d22369
@ -0,0 +1,21 @@
|
|||||||
|
endpoints:
|
||||||
|
- name: check-if-api-is-healthy
|
||||||
|
group: backend
|
||||||
|
url: "https://twin.sh/health"
|
||||||
|
interval: 5m
|
||||||
|
conditions:
|
||||||
|
- "[STATUS] == 200"
|
||||||
|
- "[BODY].status == UP"
|
||||||
|
- "[RESPONSE_TIME] < 1000"
|
||||||
|
|
||||||
|
- name: check-if-website-is-pingable
|
||||||
|
url: "icmp://example.org"
|
||||||
|
interval: 1m
|
||||||
|
conditions:
|
||||||
|
- "[CONNECTED] == true"
|
||||||
|
|
||||||
|
- name: check-domain-expiration
|
||||||
|
url: "https://example.org"
|
||||||
|
interval: 6h
|
||||||
|
conditions:
|
||||||
|
- "[DOMAIN_EXPIRATION] > 720h"
|
@ -0,0 +1,8 @@
|
|||||||
|
endpoints:
|
||||||
|
- name: make-sure-html-rendering-works
|
||||||
|
group: frontend
|
||||||
|
url: "https://example.org"
|
||||||
|
interval: 5m
|
||||||
|
conditions:
|
||||||
|
- "[STATUS] == 200"
|
||||||
|
- "[BODY] == pat(*<h1>Example Domain</h1>*)" # Check for header in HTML page
|
@ -0,0 +1,8 @@
|
|||||||
|
metrics: true
|
||||||
|
debug: false
|
||||||
|
ui:
|
||||||
|
header: Example Company
|
||||||
|
link: https://example.org
|
||||||
|
buttons:
|
||||||
|
- name: "Home"
|
||||||
|
link: "https://example.org"
|
@ -0,0 +1,10 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
gatus:
|
||||||
|
image: twinproduction/gatus:latest
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
environment:
|
||||||
|
- GATUS_CONFIG_PATH=/config
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -3,12 +3,14 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '*.md'
|
- '*.md'
|
||||||
|
- '.examples/*'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '*.md'
|
- '*.md'
|
||||||
- '.github/*'
|
- '.github/*'
|
||||||
|
- '.examples/*'
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user