# vim:ft=ansible: - name: ensure grafana dirs ansible.builtin.file: state: directory owner: 472 group: 472 mode: "0750" path: "{{ item }}" with_items: - /data/grafana/storage - /data/grafana/logs tags: [ docker, grafana, monitoring ] - name: docker deploy grafana docker_container: name: grafana image: grafana/grafana-oss:main env: TZ: "America/Chicago" # This enables logging to STDOUT for log aggregators to more easily hook it GF_LOG_MODE: "console file" GF_SERVER_DOMAIN: "grafana.desu.ltd" GF_SERVER_PROTOCOL: "http" GF_SERVER_ROOT_URL: "https://grafana.desu.ltd" networks: - name: web aliases: [ "grafana" ] volumes: - /data/grafana/storage:/var/lib/grafana - /data/grafana/logs:/var/log/grafana tags: [ docker, grafana, monitoring ] - name: docker deploy grafana matrix bridge docker_container: name: grafana-matrix-bridge image: registry.gitlab.com/hectorjsmith/grafana-matrix-forwarder:latest env: GMF_MATRIX_USER: "@grafana:desu.ltd" GMF_MATRIX_PASSWORD: "{{ secret_grafana_matrix_token }}" GMF_MATRIX_HOMESERVER: matrix.desu.ltd networks: - name: web aliases: [ "grafana-matrix-bridge" ] tags: [ docker, grafana, monitoring, bridge, matrix ]