Skip to content

Commit

Permalink
test: persist loki storage via volume
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Aug 28, 2024
1 parent 2667502 commit 1ce4eeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker-compose-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ networks:

volumes:
prometheus_data: {}
loki_data: {}

services:
loki:
image: docker.io/grafana/loki:latest
volumes:
- ./test/mockup/services/loki-config.yaml:/etc/loki/local-config.yaml
- loki_data:/loki
command: -config.file=/etc/loki/local-config.yaml
networks:
- mango
Expand Down
6 changes: 3 additions & 3 deletions test/mockup/services/loki-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ server:

common:
instance_addr: 127.0.0.1
path_prefix: /tmp/loki
path_prefix: /loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
chunks_directory: /loki/chunks
rules_directory: /loki/rules
replication_factor: 1
ring:
kvstore:
Expand Down

0 comments on commit 1ce4eeb

Please sign in to comment.