Created
February 26, 2019 02:03
-
-
Save jinnabaalu/933a91d1d4a858c44ec40e547ec57b1a to your computer and use it in GitHub Desktop.
Elasticsearch docker-compose file with CORS activated and XPack disabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
elasticsearch1: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0 | |
environment: | |
ES_JAVA_OPTS: '-Xms256m -Xmx256m' | |
cluster.name: es-cluster | |
node.name: es1 | |
network.bind_host: 0.0.0.0 | |
discovery.zen.minimum_master_nodes: 1 | |
discovery.zen.ping.unicast.hosts: elasticsearch1 | |
xpack.security.enabled: 'false' | |
xpack.monitoring.enabled: 'false' | |
xpack.watcher.enabled: 'false' | |
xpack.ml.enabled: 'false' | |
http.cors.enabled : 'true' | |
http.cors.allow-origin : "*" | |
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE | |
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length | |
logger.level: debug | |
volumes: | |
- esdata1:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
volumes: | |
esdata1: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do you do the same for kibana?