name: parsedmarc-dashboards

include:
  - docker-compose.yml

services:
  kibana:
    image: docker.elastic.co/kibana/kibana:8.19.7
    environment:
      - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
    ports:
      - "127.0.0.1:5601:5601"
    depends_on:
      elasticsearch:
        condition: service_healthy

  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards:3
    environment:
      - OPENSEARCH_HOSTS=["https://opensearch:9200"]
    ports:
      - "127.0.0.1:5602:5601"
    depends_on:
      opensearch:
        condition: service_healthy

  grafana:
    image: grafana/grafana:latest
    environment:
      - GRAFANA_PASSWORD=${GRAFANA_PASSWORD}
      - GF_INSTALL_PLUGINS=grafana-piechart-panel,grafana-worldmap-panel
    ports:
      - "127.0.0.1:3000:3000"
    depends_on:
      elasticsearch:
        condition: service_healthy

  splunk:
    image: splunk/splunk:latest
    environment:
      - SPLUNK_START_ARGS=--accept-license
      - "SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com"
      - SPLUNK_PASSWORD=${SPLUNK_PASSWORD}
      - SPLUNK_HEC_TOKEN=${SPLUNK_HEC_TOKEN}
    ports:
      - "127.0.0.1:8000:8000"
      - "127.0.0.1:8088:8088"
