grafana/devenv/docker/blocks/loki/docker-compose.yaml

22 lines
637 B
YAML
Raw Normal View History

2019-01-29 05:14:26 -06:00
loki:
image: grafana/loki:main
command: -config.file=/etc/loki/loki-config.yaml
volumes:
- ./docker/blocks/loki/loki-config.yaml:/etc/loki/loki-config.yaml
2019-01-29 05:14:26 -06:00
ports:
- "3100:3100"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3100/ready"]
interval: 30s
timeout: 10s
retries: 5
loki-data:
build: docker/blocks/loki/data
command: node /home/node/data.js http://loki:3100
depends_on:
- loki
# when loki starts, there might be some time while it is not
# accepting requests, so we allow data.js to restart on failure.
restart: "on-failure"