Created
March 3, 2021 03:05
-
-
Save jmbeach/87c833e200597271c927d8169f929dc1 to your computer and use it in GitHub Desktop.
simple elastic and kibana docker-compose file
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: '2.2' | |
services: | |
es01: | |
image: elasticsearch:7.10.1 | |
container_name: es01 | |
environment: | |
- discovery.type=single-node | |
volumes: | |
- data01:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
networks: | |
elastic: | |
ipv4_address: 192.168.24.100 | |
hostname: elasticsearch | |
kibana: | |
image: docker.elastic.co/kibana/kibana:7.10.1 | |
environment: | |
ELASTICSEARCH_HOSTS: http://192.168.24.100:9200 | |
networks: | |
elastic: | |
ipv4_address: 192.168.24.101 | |
ports: | |
- 5601:5601 | |
hostname: kibana | |
networks: | |
elastic: | |
ipam: | |
config: | |
- subnet: 192.168.24.0/24 | |
volumes: | |
data01: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment