From 96d09ffca909f5ff82fee09647bcd4bc50c3d20b Mon Sep 17 00:00:00 2001 From: wwya Date: Mon, 23 Mar 2026 10:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20docker-compose/prometheus/?= =?UTF-8?q?loki/loki.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose/prometheus/loki/loki.yaml | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docker-compose/prometheus/loki/loki.yaml diff --git a/docker-compose/prometheus/loki/loki.yaml b/docker-compose/prometheus/loki/loki.yaml new file mode 100644 index 0000000..c6f46cb --- /dev/null +++ b/docker-compose/prometheus/loki/loki.yaml @@ -0,0 +1,28 @@ +version: "3.8" +services: + loki: + image: grafana/loki:3.6.4 + container_name: loki + restart: always + ports: + - "3100:3100" + volumes: + - ./loki/config/config.yaml:/etc/loki/config.yaml + - ./loki/data:/loki/data + command: + - "--config.file=/etc/loki/config.yaml" + environment: + - TZ=Asia/Shanghai + deploy: + resources: + limits: + cpus: '1' + memory: 1G + reservations: + cpus: '0.2' + memory: "256M" + logging: + driver: json-file + options: + max-size: 50m + max-file: 3 \ No newline at end of file