2019-08-31 20:51:14 -07:00
|
|
|
---
|
2019-09-02 16:44:34 -07:00
|
|
|
version: '3.5'
|
2019-08-31 20:51:14 -07:00
|
|
|
services:
|
|
|
|
elasticsearch:
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.8
|
|
|
|
container_name: elasticsearch
|
2019-09-02 16:44:34 -07:00
|
|
|
hostname: elasticsearch
|
2019-08-31 20:51:14 -07:00
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
|
|
|
- xpack.security.enabled=false
|
2019-11-12 18:13:37 -08:00
|
|
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
kibana:
|
|
|
|
image: docker.elastic.co/kibana/kibana:5.6.8
|
|
|
|
container_name: kibana
|
2019-09-02 16:44:34 -07:00
|
|
|
hostname: kibana
|
2019-08-31 20:51:14 -07:00
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
depends_on:
|
2019-09-02 16:44:34 -07:00
|
|
|
- elasticsearch
|
|
|
|
|
2019-09-12 19:04:29 -07:00
|
|
|
# This "container" is a workaround to pre-create search indices
|
|
|
|
elasticsearch-setup:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
hostname: elasticsearch-setup
|
|
|
|
container_name: elasticsearch-setup
|
|
|
|
depends_on:
|
|
|
|
- elasticsearch
|
|
|
|
environment:
|
|
|
|
- ELASTICSEARCH_HOST=elasticsearch
|
|
|
|
- ELASTICSEARCH_PORT=9200
|
|
|
|
|
2019-09-02 16:44:34 -07:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: datahub_network
|