Fix mattermost docker-compose example

This commit is contained in:
TwinProduction 2021-01-16 20:36:59 -05:00
parent e89bb932ea
commit 6d8fd267de
2 changed files with 33 additions and 12 deletions

View File

@ -1,6 +1,16 @@
alerting:
mattermost:
webhook-url: "http://mattermost:8065/hooks/tokengoeshere"
insecure: true
services: services:
- name: example - name: example
url: http://example.org url: http://example.org
interval: 30s interval: 1m
alerts:
- type: mattermost
enabled: true
description: "healthcheck failed 3 times in a row"
send-on-resolved: true
conditions: conditions:
- "[STATUS] == 200" - "[STATUS] == 200"

View File

@ -1,13 +1,24 @@
version: "3.8" version: "3.8"
services: services:
gatus: gatus:
container_name: gatus
image: twinproduction/gatus:latest image: twinproduction/gatus:latest
ports: ports:
- 8080:8080 - 8080:8080
volumes: volumes:
- ./config.yaml:/config/config.yaml - ./config.yaml:/config/config.yaml
networks:
- default
mattermost-preview: mattermost:
image: mattermost/mattermost-preview:latest container_name: mattermost
image: mattermost/mattermost-preview:5.26.0
ports: ports:
- 8065:8065 - 8065:8065
networks:
- default
networks:
default:
driver: bridge