docker tweaks

This commit is contained in:
simon 2020-01-22 16:57:00 -05:00
parent 853e38e46b
commit 0881e8c40e
2 changed files with 4 additions and 18 deletions

View File

@ -16,6 +16,7 @@ Suggestions/concerns/PRs are welcome
```bash ```bash
git clone https://github.com/simon987/od-database git clone https://github.com/simon987/od-database
cd od-database cd od-database
mkdir oddb_pg_data/ tt_pg_data/ es_data/ wsb_data/
docker-compose up docker-compose up
``` ```
@ -26,17 +27,3 @@ docker-compose up
## Running the crawl server ## Running the crawl server
The python crawler that was a part of this project is discontinued, 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. [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
}
}

View File

@ -77,10 +77,10 @@ services:
tt_db: tt_db:
condition: service_healthy condition: service_healthy
es: es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2 image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
environment: environment:
- discovery.type=single-node - discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1G -Xmx10G" - "ES_JAVA_OPTS=-Xms1G -Xmx4G"
volumes: volumes:
- ./es_data:/usr/share/elasticsearch/data - ./es_data:/usr/share/elasticsearch/data
healthcheck: healthcheck:
@ -90,10 +90,9 @@ services:
retries: 5 retries: 5
# (Optional) # (Optional)
kibana: kibana:
image: docker.elastic.co/kibana/kibana:7.4.2 image: docker.elastic.co/kibana/kibana:7.5.2
environment: environment:
- ELASTICSEARCH_HOSTS=http://es:9200 - ELASTICSEARCH_HOSTS=http://es:9200
- xpack.monitoring.collection.enabled=true
ports: ports:
- 5021:5601 - 5021:5601
depends_on: depends_on: