New Project
Last updated
Last updated
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
container_name: elasticsearch
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.cors.enabled=true
- http.cors.allow-origin="*"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- observability
kibana:
image: docker.elastic.co/kibana/kibana:7.13.0
container_name: kibana
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: '["http://elasticsearch:9200"]'
networks:
- observability
networks:
observability:
external: true
Create the network before running docker compose up
.
docker network create observability