Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

elasticsearch: Use a docker volume to persist data #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
version: '3'
volumes:
esdata:
services:
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
jhipster-elasticsearch:
build: jhipster-elasticsearch/
ports:
- "9200:9200"
# Uncomment this section to have elasticsearch data loaded from a volume
#volumes:
# - ./log-data:/usr/share/elasticsearch/data
# Replace "esdata" by relative (e.g. ./log-data) or full (e.g. /var/lib/elasticsearch/data) path
# if you want to keep data externally instead of docker volume
volumes:
- esdata:/usr/share/elasticsearch/data
jhipster-logstash:
build: jhipster-logstash/
environment:
Expand Down Expand Up @@ -63,4 +66,4 @@ services:
- ES_INDEX=traces
- ZIPKIN_UI_LOGS_URL=http://localhost:5601/app/kibana#/discover/d0682f20-e0e9-11e7-9c68-0b9a0f0c183c?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-30d,mode:quick,to:now))&_a=(columns:!(X-B3-TraceId,app_name,level,message),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'logs-*',key:X-B3-TraceId,negate:!f,params:(query:'trace',type:phrase),type:phrase,value:'trace'),query:(match:(X-B3-TraceId:(query:'{traceId}',type:phrase))))),index:'logs-*',interval:auto,query:(language:lucene,query:''),sort:!('@timestamp',desc))
ports:
- 9411:9411
- 9411:9411