mirror of
https://github.com/simon987/od-database.git
synced 2025-04-10 14:06:45 +00:00
docker tweaks
This commit is contained in:
parent
853e38e46b
commit
0881e8c40e
15
README.md
15
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
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user