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