setup entities-search-engine

-use of Dockerfile versus run from docker-compose.yml, because
docker alone can build services. move dockerfiles to root folder of
each repos?
-cleanup dockerfile.inventaire setup
This commit is contained in:
Vincent Jumo
2018-10-09 15:03:59 +02:00
parent 7bb5785f60
commit b3e466b380
5 changed files with 17 additions and 11 deletions

View File

@@ -1,4 +1,2 @@
FROM node:6.11.1
ENV USER=inventaire
CMD [ "node_modules/coffee-script/bin/coffee", "server/server.coffee"]
FROM node:8-alpine
CMD [ "node_modules/coffee-script/bin/coffee", "server/server.coffee"]

View File

@@ -33,8 +33,11 @@ services:
volumes:
- './data/es:/usr/share/elasticsearch/data'
entities-search-engine:
image: node:8
command: 'node_modules/coffee-script/bin/coffee server/server.coffee'
build:
context: ./.
dockerfile: Dockerfile.entities-search-engine
environment:
NODE_ENV: "tests"
ports:
- "3213:3213"
volumes:

View File

@@ -30,7 +30,9 @@ services:
# backup folder when ES container is removed
- './data/es:/usr/share/elasticsearch/data'
entities-search-engine:
image: node:8
build:
context: ./.
dockerfile: Dockerfile.entities-search-engine
command: 'node_modules/coffee-script/bin/coffee server/server.coffee'
ports:
- "3213:3213"

View File

@@ -1,2 +1,5 @@
elastic:
host: 'http://elasticsearch:9200'
module.exports =
elastic:
host: 'http://elasticsearch:9200'
inventaire:
host: 'http://inventaire:3006'

View File

@@ -21,6 +21,6 @@ module.exports =
'inv:deduplicate':
run: true
entitiesSearchEngine:
updateEnabled: false
localPath: '/opt/entities-search-engine'
host: 'http://entities-search-engine:3213'
updateEnabled: true
delay: 3000