Skip to content

Commit

Permalink
feat: bind sequence token path to host for persistence (#88)
Browse files Browse the repository at this point in the history
* feat: bind sequence token path to host for persistence
  • Loading branch information
njuguna-n authored Apr 19, 2024
1 parent 1045f66 commit e1c3953
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
.idea
*/coverage/*
logstash/sequence_path.txt
11 changes: 11 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.7'

services:
logstash:
image: medicmobile/cht-logstash-couchdb:latest
build: ./logstash/
restart: always
volumes:
- type: bind
source: ./logstash
target: /tmp/couchdb
1 change: 1 addition & 0 deletions logstash/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ rm "${TEMPLATE_FILE}"

if [[ -f "${COUCHDB_SEQ}" && -s "${COUCHDB_SEQ}" ]]; then
echo "Using existing sequence file"
echo "Current sequence: $(cat ${COUCHDB_SEQ})"
else
mkdir -p `dirname ${COUCHDB_SEQ}` \
&& chown -R $USER.$USER `dirname ${COUCHDB_SEQ}` \
Expand Down

0 comments on commit e1c3953

Please sign in to comment.