Skip to content

Instantly share code, notes, and snippets.

@devfreddy
Created August 20, 2020 13:32
Show Gist options
  • Save devfreddy/d888ce80965853b12960358762ce978c to your computer and use it in GitHub Desktop.
Save devfreddy/d888ce80965853b12960358762ce978c to your computer and use it in GitHub Desktop.
Monocle + Dejavu

Combining Monocle with Dejavu

docker-compose.yml

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
  1. docker-compose down
  2. docker-compose up -d
  3. Visit localhost:1358 in your browser
  4. Use http://elastic:changeme@localhost:9200 and * as inputs to connect and view data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment