Help using a custom config file with a Loki Docker container

I tried changing the default configuration of my Loki Docker container, but if I try to run it with a custom config file it exits with status code 1. What am I doing wrong?

This is my docker-compose.yml file:

services:

  loki-test:

    image: grafana/loki:2.7.1
  
    volumes:
      - ./loki-config.yml:/loki-config.yml

    command: -config.file=/loki-config.yml

And this is my loki-config.yml file:

limits_config:
  split_queries_by_interval: 3h

frontend:
  max_outstanding_per_tenant: 1024

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.