2020-08-12 02:37:23 +02:00
|
|
|
version: '3.1' # specify docker-compose version
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
# Set up with `docker volume create ...`. See docker/README.md for more info.
|
2022-06-13 20:55:01 +02:00
|
|
|
matrix-alertbot:
|
2020-08-12 02:37:23 +02:00
|
|
|
external: true
|
|
|
|
|
2022-08-08 16:43:05 +02:00
|
|
|
networks:
|
2022-06-13 20:55:01 +02:00
|
|
|
matrix-alertbot:
|
2022-08-08 16:43:05 +02:00
|
|
|
name: matrix-alertbot
|
|
|
|
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
|
|
image: prom/prometheus
|
2020-08-12 02:37:23 +02:00
|
|
|
restart: always
|
2022-08-08 16:43:05 +02:00
|
|
|
networks:
|
|
|
|
- matrix-alertbot
|
2020-08-12 02:37:23 +02:00
|
|
|
volumes:
|
2022-08-08 16:43:05 +02:00
|
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
- ./prometheus/rules.d:/etc/prometheus/rules.d
|
2020-08-12 02:37:23 +02:00
|
|
|
|
2022-08-08 16:43:05 +02:00
|
|
|
alertmanager:
|
|
|
|
image: prom/alertmanager
|
|
|
|
depends_on:
|
|
|
|
- prometheus
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- matrix-alertbot
|
2020-08-12 02:37:23 +02:00
|
|
|
volumes:
|
2022-08-08 16:43:05 +02:00
|
|
|
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
|
2020-08-12 02:37:23 +02:00
|
|
|
|
2022-08-08 16:43:05 +02:00
|
|
|
# Runs from the latest release
|
|
|
|
matrix-alertbot:
|
|
|
|
image: neutrinet/matrix-alertbot
|
2020-08-12 02:37:23 +02:00
|
|
|
build:
|
|
|
|
context: ..
|
2022-08-08 16:43:05 +02:00
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
depends_on:
|
|
|
|
- alertmanager
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- matrix-alertbot
|
2020-08-12 02:37:23 +02:00
|
|
|
volumes:
|
2022-06-13 20:55:01 +02:00
|
|
|
- matrix-alertbot:/data
|
2020-08-12 02:37:23 +02:00
|
|
|
# Used for allowing connections to homeservers hosted on the host machine
|
2022-08-08 16:43:05 +02:00
|
|
|
# (while docker host mode is still broken on Linux).
|
2020-08-12 02:37:23 +02:00
|
|
|
#
|
|
|
|
# Defaults to 127.0.0.1 and is set in docker/.env
|
|
|
|
extra_hosts:
|
|
|
|
- "localhost:${HOST_IP_ADDRESS}"
|
|
|
|
|