Hi all,
I'm launching Elasticsearch using docker-compose for specific demand of the project.
I'm trying to load a custom_elasticsearch.yml to add http.cors properties. I also tried directly inside the environment section of docker-compose.yml, it doesn't seem to be taken in count :
environment:
- cluster.name=es-docker
- node.name=node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
- http.port=9300
- http.cors.enabled=true
- http.cors.allow-credentials=true
- "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization,X-User"
- "http.cors.allow-origin=\"*\""
- "http.cors.allow-methods=OPTIONS,HEAD,GET,POST,PUT,DELETE"
...
I precise that my server is in cluster mode...
Is it possible ? And what is the ideal configuration to do so ?
Please advise.