Last active
August 27, 2023 06:13
-
-
Save PrettySolution/7576dbcf2f579a00fd7765015f2ecee3 to your computer and use it in GitHub Desktop.
loki in docker compose example
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: "3" | |
services: | |
app: | |
build: | |
dockerfile: Dockerfile | |
ports: | |
- "8080:3000" | |
depends_on: | |
- grafana | |
- promtail | |
logging: | |
driver: loki | |
options: | |
loki-url: http://localhost:3100/loki/api/v1/push | |
loki-external-labels: webapp=pretty-solution | |
grafana: | |
image: grafana/grafana:latest | |
ports: | |
- "9090:3000" | |
logging: | |
driver: loki | |
options: | |
loki-url: http://localhost:3100/loki/api/v1/push | |
loki: | |
image: grafana/loki:2.8.4 | |
ports: | |
- "3100:3100" | |
# promtail: | |
# image: grafana/promtail:2.8.4 | |
# ports: | |
# - "9080:9080" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker plugin install grafana/loki-docker-driver:2.8.2 --alias loki --grant-all-permissions
docker plugin ls