To the elastic
config:
Remove:
expose:
- 9200
Add:
environment:
- "ES_JAVA_OPTS=-Xms${ES_XMS:-512m} -Xmx${ES_XMX:-512m}"
- "discovery.type=single-node"
- "http.port=9200"
- "http.cors.allow-origin=http://localhost:1358,http://127.0.0.1:1358"
- "http.cors.enabled=true"
- "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
- "http.cors.allow-credentials=true"
ports:
- "9200:9200"
- "9300:9300"
Add a new config block for Dejavu
dejavu:
image: "appbaseio/dejavu"
container_name: dejavu
ports:
- "1358:1358"
links:
- elastic
docker-compose down
docker-compose up -d
- Visit
localhost:1358
in your browser - Use
http://elastic:changeme@localhost:9200
and*
as inputs to connect and view data