Skip to content

Instantly share code, notes, and snippets.

@SIMULATAN
Created March 16, 2023 11:29
Show Gist options
  • Save SIMULATAN/a2674dddd370b7724d932df623b8426d to your computer and use it in GitHub Desktop.
Save SIMULATAN/a2674dddd370b7724d932df623b8426d to your computer and use it in GitHub Desktop.
Grafana Mimir compose file
version: "3.9"
services:
mimir:
image: grafana/mimir:2.7.0
networks:
- prometheus
volumes:
- tsdb:/tsdb:rw
command:
- '--config.file=/etc/mimir/config.yml'
- '--config.expand-env'
configs:
- source: mimir
target: /etc/mimir/config.yml
mode: 0644
ports:
- target: 9009
published: 9009
protocol: tcp
deploy:
# I originally tried using `mode: host` with an overlay network and with two swarm nodes,
# but switched to this now to have the simplest possible reproduction environment
mode: replicated
replicas: 2
# neither vip nor dnsrr make it work, the behaviour of docker's dns server doesn't change anyway
endpoint_mode: vip
networks:
prometheus:
name: prometheus
attachable: true
volumes:
tsdb:
configs:
mimir:
file: ./mimir.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment