From 0881e8c40e075493691de20877018d8fa04070c4 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 22 Jan 2020 16:57:00 -0500 Subject: [PATCH] docker tweaks --- README.md | 15 +-------------- docker-compose.yml | 7 +++---- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 974e811..e447a4a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Suggestions/concerns/PRs are welcome ```bash git clone https://github.com/simon987/od-database cd od-database +mkdir oddb_pg_data/ tt_pg_data/ es_data/ wsb_data/ docker-compose up ``` @@ -26,17 +27,3 @@ docker-compose up ## Running the crawl server The python crawler that was a part of this project is discontinued, [the go implementation](https://github.com/terorie/od-database-crawler) is currently in use. - -### Configure Elasticsearch -``` -PUT _template/default -{ - "index_patterns": ["*"], - "order": -1, - "settings": { - "number_of_shards": "50", - "number_of_replicas": "0", - "codec" : "best_compression", - "routing_partition_size" : 5 - } -} diff --git a/docker-compose.yml b/docker-compose.yml index f4d6636..b45bfdb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -77,10 +77,10 @@ services: tt_db: condition: service_healthy es: - image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2 + image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2 environment: - discovery.type=single-node - - "ES_JAVA_OPTS=-Xms1G -Xmx10G" + - "ES_JAVA_OPTS=-Xms1G -Xmx4G" volumes: - ./es_data:/usr/share/elasticsearch/data healthcheck: @@ -90,10 +90,9 @@ services: retries: 5 # (Optional) kibana: - image: docker.elastic.co/kibana/kibana:7.4.2 + image: docker.elastic.co/kibana/kibana:7.5.2 environment: - ELASTICSEARCH_HOSTS=http://es:9200 - - xpack.monitoring.collection.enabled=true ports: - 5021:5601 depends_on: