Created
January 9, 2023 08:33
-
-
Save damarowen/c94e30a0321bd8024470b8e899df5998 to your computer and use it in GitHub Desktop.
Docker kibana and ES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
name: es_kibana | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.2 | |
container_name: elasticsearch | |
restart: always | |
volumes: | |
- ./es_data:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
environment: | |
discovery.type: 'single-node' | |
xpack.security.enabled: 'false' | |
networks: | |
- es_kibana | |
kibana: | |
depends_on: | |
- elasticsearch | |
image: docker.elastic.co/kibana/kibana:8.3.2 | |
container_name: kibana | |
volumes: | |
- ./kibana-data:/usr/share/kibana/data | |
ports: | |
- 5601:5601 | |
restart: always | |
environment: | |
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 | |
networks: | |
- es_kibana | |
# Networks to be created to facilitate communication between containers | |
networks: | |
es_kibana: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment