-
-
Save SIMULATAN/a2674dddd370b7724d932df623b8426d to your computer and use it in GitHub Desktop.
Grafana Mimir compose file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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