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 FROM node:8-alpine
ENV USER=inventaire CMD [ "node_modules/coffee-script/bin/coffee", "server/server.coffee"]
CMD [ "node_modules/coffee-script/bin/coffee", "server/server.coffee"]

View File

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

View File

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

View File

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

View File

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