ansible/roles/stacks/composes/inventory/mimir.yml

41 lines
1.1 KiB
YAML

# 2023-09-26
# Stack: mimir
---
mimir:
name: "mimir"
tasks:
- mimir.yml
ipv6: true
directories:
- "{{ stack_folder_conf }}/mimir/conf"
- "{{ stack_folder_datas }}/mimir/datas"
services:
- name: "mimir"
image: "grafana/mimir:latest"
uid: "0"
gid: "0"
privileged: true
capabilities:
- DAC_OVERRIDE
- SETUID
- SETGID
- CHOWN
- SYS_ADMIN
restart: "always"
ports:
- { exposed: "${VM_PORT_MIMIR}", container: "9009" }
- { exposed: "${VM_PORT_MIMIR_METRICS}", container: "9095" }
command: "--config.file=/etc/mimir/mimir.yaml"
healthcheck: 'wget --no-verbose --tries=1 --spider http://0.0.0.0:9009/ || exit 1'
ressources:
cpu: "{{ vm_os_cpu_max }}"
memory: "{{ 4.0 if 4.0 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"
tmpfs: 512M
volumes:
- { local: './{{ stack_folder_conf }}/mimir/conf/mimir.yml', container: '/etc/mimir/mimir.yaml', mode: 'ro' }
- { local: './{{ stack_folder_datas }}/mimir/datas', container: '/mimir', mode: 'rw' }