create volumes to persist data on es & couch even when container is removed

This commit is contained in:
Vincent Jumo
2018-08-23 18:01:49 +02:00
parent cf06e40ba0
commit 106dd2f444
2 changed files with 8 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ services:
environment:
COUCHDB_USER: "couchdb"
COUCHDB_PASSWORD: "password"
volumes:
- './data/couch:/usr/local/var/lib/couchdb'
inventaire:
build:
context: ./.
@@ -27,8 +29,11 @@ services:
- 'transport.host=127.0.0.1'
ports :
- '127.0.0.1:9200:9200'
volumes:
# backup folder when ES container is removed
- './data/es:/usr/share/elasticsearch/data'
entities-search-engine:
image: node:6.11.1
image: node:8
command: 'node_modules/coffee-script/bin/coffee server/server.coffee'
ports:
- "3213:3213"