compose.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. services:
  3. loki:
  4. container_name: loki
  5. image: grafana/loki:3.4.2
  6. command: "-config.file=/etc/loki/config.yaml"
  7. ports:
  8. # --> (Optional) Remove when using traefik...
  9. - "3100:3100"
  10. # <--
  11. volumes:
  12. - ./config/config.yaml:/etc/loki/config.yaml:ro
  13. - data_loki:/loki:rw
  14. # --> (Optional) When using traefik...
  15. # labels:
  16. # - traefik.enable=true
  17. # # -- Traefik Services
  18. # - traefik.http.services.loki.loadbalancer.server.port=3100
  19. # # -- Traefik Routers
  20. # - traefik.http.routers.loki.entrypoints=websecure
  21. # - traefik.http.routers.loki.rule=Host(`loki-fqdn`)
  22. # - traefik.http.routers.loki.tls=true
  23. # - traefik.http.routers.loki.tls.certresolver=cloudflare
  24. # - traefik.http.routers.loki.service=loki
  25. # # -- (Optional) Authentication
  26. # # - traefik.http.routers.loki.middlewares=authentik-middleware@file
  27. # networks:
  28. # - frontend
  29. # <--
  30. restart: unless-stopped
  31. volumes:
  32. data_loki:
  33. driver: local
  34. # --> (Optional) When using traefik...
  35. # networks:
  36. # frontend:
  37. # external: true
  38. # <--