Created
May 23, 2019 21:18
-
-
Save ascarter/7ec88c78de1267b9e3d2f5f340b72d93 to your computer and use it in GitHub Desktop.
Grafana/Prometheus/Loki stack
This file contains hidden or 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: "3.7" | |
services: | |
prometheus: | |
image: prom/prometheus | |
ports: | |
- 9090:9090 | |
volumes: | |
- prometheus-storage:/prometheus | |
loki: | |
image: grafana/loki | |
ports: | |
- 3100:3100 | |
command: -config.file=/etc/loki/local-config.yaml | |
promtail: | |
image: grafana/promtail | |
volumes: | |
- /var/log:/var/log | |
command: -config.file=/etc/promtail/docker-config.yaml | |
grafana: | |
image: grafana/grafana | |
ports: | |
- 3000:3000 | |
volumes: | |
- grafana-storage:/var/lib/grafana | |
volumes: | |
grafana-storage: | |
prometheus-storage: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We must expose
loki-storage
volume too for persist data, isn't it?