|
|
|
|
@ -118,6 +118,7 @@ services: |
|
|
|
|
image: grafana/loki:2.7.3 |
|
|
|
|
volumes: |
|
|
|
|
- ./config:/etc/loki/ |
|
|
|
|
- ./rules:/loki/rules:ro |
|
|
|
|
ports: |
|
|
|
|
- "3100" |
|
|
|
|
- "7946" |
|
|
|
|
@ -127,7 +128,7 @@ services: |
|
|
|
|
# - SYS_PTRACE |
|
|
|
|
#security_opt: |
|
|
|
|
# - apparmor=unconfined |
|
|
|
|
command: "-config.file=/etc/loki/loki.yaml -target=read -legacy-read-mode=false" |
|
|
|
|
command: "-config.file=/etc/loki/loki.yaml -target=read" |
|
|
|
|
networks: |
|
|
|
|
- loki |
|
|
|
|
restart: always |
|
|
|
|
@ -157,28 +158,6 @@ services: |
|
|
|
|
mode: replicated |
|
|
|
|
replicas: 3 |
|
|
|
|
|
|
|
|
|
loki-backend: |
|
|
|
|
image: grafana/loki:2.7.3 |
|
|
|
|
volumes: |
|
|
|
|
- ./config:/etc/loki/ |
|
|
|
|
- ./rules:/etc/loki/rules |
|
|
|
|
ports: |
|
|
|
|
- "3100" |
|
|
|
|
- "7946" |
|
|
|
|
# uncomment to use interactive debugging |
|
|
|
|
#- "60000-60002:40000" # makes the replicas available on ports 50000, 50001, 50002 |
|
|
|
|
# cap_add: |
|
|
|
|
# - SYS_PTRACE |
|
|
|
|
# security_opt: |
|
|
|
|
# - apparmor=unconfined |
|
|
|
|
command: "-config.file=/etc/loki/loki.yaml -target=backend -legacy-read-mode=false -log.level=debug" |
|
|
|
|
networks: |
|
|
|
|
- loki |
|
|
|
|
restart: always |
|
|
|
|
deploy: |
|
|
|
|
mode: replicated |
|
|
|
|
replicas: 3 |
|
|
|
|
|
|
|
|
|
# alertmanager to enable receiving alerts |
|
|
|
|
alertmanager: |
|
|
|
|
image: prom/alertmanager:v0.23.0 |
|
|
|
|
|