docker-compose.yml
df.assign(Points = pd.Series(calculate_point(df), index=df.index))
django settings.py弹性搜索连接
version: "3"
services:
rango_api:
container_name: rango
build: ./
command: python manage.py runserver 0.0.0.0:8000
command: python manage.py search_index --rebuild
working_dir: /usr/src/rango_api
environment:
REDIS_URI: redis://redis:6379
ports:
- "8000:8000"
volumes:
- ./:/usr/src/rango_api
links:
- redis
- elasticsearch
#redis
redis:
image: redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6379:6379"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
ports:
- "9200:9200"
- "9300:9300"
错误:
ELASTICSEARCH_DSL = {
'default': {
'hosts': 'elasticsearch:9200'
},
}
我正在尝试使用docker-compose在docker内部使用django进行elastci搜索。 但在建立索引时进行elastci搜索时,它询问是或否。 我该如何解决这个问题。
请看看。
谢谢..