Skip to content

Commit

Permalink
Change to bind mount #30
Browse files Browse the repository at this point in the history
  • Loading branch information
sroertgen committed Jan 16, 2024
1 parent 68d2ac4 commit 4a7c06a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 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/
.env
coverage/
.vscode/
data/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ You can create it with:

docker network create reconcile-backend

### Elasticsearch Data Directory

Create the data directory for elasticsearch with `mkdir -p data/elasticsearch/data`

### Run the Service

Then, you can run the service with:
Expand Down
5 changes: 1 addition & 4 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ version: "3"
services:
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
# Uncomment the following line to expose the elastic port to the host for debugging or development purposes
ports:
- 9200:9200
volumes:
- elasticData:/usr/share/elasticsearch/data
- ./data/elasticsearch/data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- node.name=elastic
Expand Down Expand Up @@ -77,8 +76,6 @@ services:
- reconcile-backend

volumes:
elasticData:
driver: local
kibanadata:
driver: local

Expand Down
11 changes: 1 addition & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ version: "3"
services:
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
# Uncomment the following line to expose the elastic port to the host for debugging or development purposes
# ports:
# - 9200:9200
volumes:
- elasticData:/usr/share/elasticsearch/data
- ./data/elasticsearch/data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- node.name=elastic
Expand Down Expand Up @@ -47,12 +44,6 @@ services:
networks:
- reconcile-backend

volumes:
elasticData:
driver: local
kibanadata:
driver: local

networks:
reconcile-backend:
name: reconcile-backend
Expand Down

0 comments on commit 4a7c06a

Please sign in to comment.