Skip to content

Instantly share code, notes, and snippets.

@Fabricio20
Created July 9, 2018 18:36
Show Gist options
  • Save Fabricio20/77ef0beb57de05c624c5c3fde9603343 to your computer and use it in GitHub Desktop.
Save Fabricio20/77ef0beb57de05c624c5c3fde9603343 to your computer and use it in GitHub Desktop.
Dockerized Grafana + Prometheus + GrayLog
version: '2'
services:
mongo:
image: "mongo:3"
volumes:
- ./mongo:/data/db
graylog:
image: graylog2/server:2.1.1-1
environment:
GRAYLOG_PASSWORD_SECRET: GRAYLOG_PASSWORD
GRAYLOG_ROOT_PASSWORD_SHA2: GRAYLOG_PASSWORD_HASHED
GRAYLOG_WEB_ENDPOINT_URI: http://IP:9010/api
links:
- grafana-ui:grafana
- elasticsearch:elasticsearch
- mongo:mongo
ports:
- "9010:9000"
- "12201:12201/udp"
- "1514:1514/udp"
volumes:
- ./graylog/data/journal:/usr/share/graylog/data/journal
- ./graylog/config:/usr/share/graylog/data/config
elasticsearch:
image: "elasticsearch:2"
command: "elasticsearch -Des.cluster.name='graylog'"
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
prometheus-server:
image: prom/prometheus
ports:
- 9090:9090
links:
- metrics-gateway:metrics-gateway
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
metrics-gateway:
image: prom/pushgateway
ports:
- 9091:9091
grafana-ui:
image: grafana/grafana
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_PASSWORD=PASSWORD_FOR_ADMIN
links:
- elasticsearch:elasticsearch
- prometheus-server:prometheu
@aplocher
Copy link

aplocher commented Feb 8, 2021

This seems to be truncated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment