Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

1.1 KB
Raw Blame
id: loki
name: Grafana Loki
version: "2.9"
description: Horizontally scalable, highly available log aggregation system inspired by Prometheus
icon: https://serverkit.ai/imgs/template-icons/loki.svg
website: https://grafana.com/oss/loki/
documentation: https://grafana.com/docs/loki/latest/
categories:
  - monitoring
  - logging
  - observability

variables:
  - name: HTTP_PORT
    description: HTTP port
    type: port
    default: "3100"
    hidden: true

# What an app (Grafana) gets through `fromService`, over the shared network.
connection:
  port: 3100
  properties:
    url: "http://{host}:{port}"

ports:
  - port: 3100
    protocol: tcp
    description: HTTP API

volumes:
  - name: data
    path: /loki
    description: Loki data storage

requirements:
  memory: 1GB
  storage: 20GB

compose:
  services:
    loki:
      image: grafana/loki:${VERSION:-2.9.0}
      container_name: ${APP_NAME}
      restart: unless-stopped
      command: -config.file=/etc/loki/local-config.yaml
      volumes:
        - loki_data:/loki
      ports:
        - "${HTTP_PORT}:3100"

  volumes:
    loki_data: