Skip to content

Commit

Permalink
Integrate dejavu as an ES UI into dev workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Jan 3, 2023
1 parent 9e9277d commit 0b6e4d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: build upgrade web
services:
$(COMPOSE) up -d --remove-orphans \
postgres elasticsearch ingest-file \
convert-document
convert-document dejavu

shell: services
$(APPDOCKER) /bin/bash
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ services:
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data

dejavu:
image: appbaseio/dejavu:3.6.0
container_name: dejavu
ports:
- '1358:1358'
links:
- elasticsearch

redis:
image: redis:alpine
command: ["redis-server", "--save", "3600", "10"]
Expand Down
4 changes: 4 additions & 0 deletions docs/src/pages/developers/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ You can also build the Aleph images locally. This could be useful while working
To build the image you can run `make build`, which will build the `alephdata/aleph` image (this will generate a production ready image).

### Inspecting ElasticSearch

At times it can be useful to inspect the contents of the ElasticSearch indices. The developer setup includes [dejavu](https://github.com/appbaseio/dejavu/stargazers), a web-based UI for ElasticSearch. In a local environment brought up as described above you should see dejavu under [http://localhost:1358](http://localhost:1358). You will need to pass it the local ES cluster URL (`http://localhost:19200`) and you can either inspect an individual index or use `*` to see the whole content.

## Production deployment

<Callout>
Expand Down

0 comments on commit 0b6e4d6

Please sign in to comment.