Skip to content

Instantly share code, notes, and snippets.

@sigevsky
Last active July 14, 2023 12:48
Show Gist options
  • Save sigevsky/5e2a9be185342fab274b94b19fdf12bb to your computer and use it in GitHub Desktop.
Save sigevsky/5e2a9be185342fab274b94b19fdf12bb to your computer and use it in GitHub Desktop.
version: '3.9'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.2
restart: always
environment:
- discovery.type=single-node
- ELASTIC_PASSWORD=test123_
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
healthcheck:
test: ["CMD", "curl", "-u", "elastic:test123_", "-f", "http://localhost:9200"]
interval: 30s
timeout: 10s
retries: 5
kibana:
image: docker.elastic.co/kibana/kibana:8.8.2
restart: always
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- SERVER_HOST=0.0.0.0
ports:
- 5601:5601
depends_on:
elasticsearch:
condition: service_healthy
apm-server:
image: docker.elastic.co/apm/apm-server:8.8.2
restart: always
depends_on:
elasticsearch:
condition: service_healthy
command: >
apm-server -e
-E apm-server.rum.enabled=false
-E setup.kibana.host=kibana:5601
-E setup.template.settings.index.number_of_replicas=0
-E apm-server.kibana.enabled=true
-E apm-server.kibana.host=kibana:5601
-E output.elasticsearch.username=elastic
-E output.elasticsearch.password=test123_
-E output.elasticsearch.hosts=["elasticsearch:9200"]
ports:
- 8200:8200
volumes:
esdata:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment