version: "3.8"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.0
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
ports:
- "9200:9200"
kibana:
image: docker.elastic.co/kibana/kibana:8.14.0
environment:
- ELASTICSEARCH_HOSTS=["http://elasticsearch:9200"]
- XPACK_SECURITY_ENABLED=false
ports:
- "5601:5601"
depends_on:
- elasticsearch
otel-collector:
image: otel/opentelemetry-collector:0.102.1
command:
- "--config=/etc/otelcol/config.yaml"
volumes:
- ./otel-config.yaml:/etc/otelcol/config.yaml:ro
ports:
- "4317:4317"
- "4318:4318"
depends_on:
- elasticsearch