Open nagkumar opened 3 months ago
I only see these 2 servers in docker hub..
while it https://www.elastic.co/guide/en/observability/current/apm-running-on-docker.html says
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
networks:
- app-network
ports:
- "9200:9200"
environment:
- "discovery.type=single-node"
- node.name=es01
- bootstrap.memory_lock=true
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=false
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=changeme
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data:rw
apm-server:
image: docker.elastic.co/apm/apm-server:8.13.0
container_name: apm-server
restart: unless-stopped
networks:
- app-network
ports:
- "8200:8200"
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=changeme
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:${ELASTIC_VERSION}
networks:
- app-network
ports:
- "5601:5601"
restart: on-failure
depends_on:
- elasticsearch
networks:
app-network:
driver: bridge
adding this did launch the required servers locally.. any other config required?
ELASTIC_APM_SERVER_URL="https://foobar.apm.us-central1.gcp.cloud.es.io" ELASTIC_APM_SECRET_TOKEN="secret123"
ELASTICSEARCH_USERNAME="elastic" ELASTICSEARCH_PASSWORD="changeme" ELASTICSEARCH_URL="https://foobar.es.us-central1.gcp.cloud.es.io"
It would be nice to add how to create these servers.. especially not show what is ELASTIC_APM_SERVER_URL, hence was saying dockerisation of launch of these servers would make example more easy to follow