Created
November 22, 2018 15:09
-
-
Save haidlir/822f714a1392371b6430e76cfcf70ba6 to your computer and use it in GitHub Desktop.
API Monitoring - Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment