Compare commits

...

3 Commits

Author SHA1 Message Date
TwinProduction
cf6a74f862 Update example config 2020-09-14 20:05:00 -04:00
TwinProduction
9f8a74f5b1 Add subtle Github link in bottom right corner 2020-09-08 18:28:19 -04:00
azerty
2888254bda Add Docker Compose example (#11)
* Add Docker Compose example

* Revert README.md

* Move docker-compose sample to examples folder

* docker-compose folder has its own config.yaml
2020-09-06 12:37:31 -04:00
5 changed files with 39 additions and 6 deletions

View File

@@ -7,11 +7,10 @@ services:
- "[STATUS] == 200" - "[STATUS] == 200"
- "[BODY].status == UP" - "[BODY].status == UP"
- "[RESPONSE_TIME] < 1000" - "[RESPONSE_TIME] < 1000"
- name: twinnation-articles-api - name: cat-fact
interval: 30s interval: 1m
url: "https://twinnation.org/api/v1/articles/24" url: "https://cat-fact.herokuapp.com/facts/random"
conditions: conditions:
- "[STATUS] == 200" - "[STATUS] == 200"
- "[BODY].id == 24" - "[BODY].deleted == false"
- "[BODY].tags[0] == spring" - "len([BODY].text) > 0"
- "len([BODY].tags) > 0"

View File

@@ -0,0 +1,6 @@
services:
- name: example
url: http://example.org
interval: 30s
conditions:
- "[STATUS] == 200"

View File

@@ -0,0 +1,8 @@
version: "3.8"
services:
gatus:
image: twinproduction/gatus:latest
ports:
- 8080:8080
volumes:
- ./config.yaml:/config/config.yaml

BIN
static/github.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -76,6 +76,20 @@
#tooltip>.tooltip-title:first-child { #tooltip>.tooltip-title:first-child {
margin-top: 0; margin-top: 0;
} }
#social {
position: fixed;
right: 5px;
bottom: 5px;
padding: 5px;
margin: 0;
z-index: 100;
}
#social img {
opacity: 0.3;
}
#social img:hover {
opacity: 1;
}
</style> </style>
</head> </head>
<body> <body>
@@ -108,6 +122,12 @@
<script src="/jquery.min.js"></script> <script src="/jquery.min.js"></script>
<div id="social">
<a href="https://github.com/TwinProduction/gatus" target="_blank" title="Gatus on GitHub">
<img src="/github.png" alt="GitHub" width="32" height="auto" />
</a>
</div>
<script> <script>
let serviceStatuses = {}; let serviceStatuses = {};
let timerHandler = 0; let timerHandler = 0;