mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-24 10:00:07 +00:00
38 lines
872 B
YAML
38 lines
872 B
YAML
---
|
|
version: '3.5'
|
|
services:
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.8
|
|
container_name: elasticsearch
|
|
hostname: elasticsearch
|
|
ports:
|
|
- "9200:9200"
|
|
environment:
|
|
- discovery.type=single-node
|
|
- xpack.security.enabled=false
|
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
|
|
kibana:
|
|
image: docker.elastic.co/kibana/kibana:5.6.8
|
|
container_name: kibana
|
|
hostname: kibana
|
|
ports:
|
|
- "5601:5601"
|
|
depends_on:
|
|
- elasticsearch
|
|
|
|
# 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
|
|
|
|
networks:
|
|
default:
|
|
name: datahub_network |