Skip to content

Instantly share code, notes, and snippets.

@haidlir
Last active November 23, 2018 08:49
Show Gist options
  • Save haidlir/857de1f66efd7b94859733fb82a52755 to your computer and use it in GitHub Desktop.
Save haidlir/857de1f66efd7b94859733fb82a52755 to your computer and use it in GitHub Desktop.
API Monitoring - Final Docker Compose
version: "2.1"
networks:
api-monitoring:
volumes:
prom-storage:
graf-storage:
services:
# Exp
exporter-001:
image: prom/blackbox-exporter:v0.12.0
networks:
api-monitoring:
aliases:
- exporter-001
volumes:
- ${PWD}/conf/exporter-001:/etc/blackbox_exporter
restart: always
# Prom
prometheus:
image: prom/prometheus:v2.4.3
networks:
api-monitoring:
aliases:
- prom
volumes:
- ${PWD}/conf/prom:/etc/prometheus
- prom-storage:/prometheus
privileged: true
restart: always
# Graf
grafana:
image: grafana/grafana:5.3.1
ports:
- "3000:3000"
networks:
api-monitoring:
aliases:
- graf
volumes:
- "graf-storage:/var/lib/grafana"
environment:
- GF_SERVER_ROOT_URL=http:/<host-ip-address>:3000/
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_NAME=Startup-Example
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
restart: always
# Notification-Converter
api-status-converter:
image: ketitik/startup-example-notification-api-status
networks:
api-monitoring:
aliases:
- api-status-converter
environment:
- TARGET_URL=http://notification-service:4444/bot-startup-example
restart: always
# Hermes-Notification
notification-service:
image: ketitik/hermes-notificator-service
networks:
api-monitoring:
aliases:
- notification-service
volumes:
- ${PWD}/conf/notification/notification.yaml:/home/hermes-notificator/notification.yaml
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment