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:
@@ -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"]
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
elastic:
|
||||
host: 'http://elasticsearch:9200'
|
||||
module.exports =
|
||||
elastic:
|
||||
host: 'http://elasticsearch:9200'
|
||||
inventaire:
|
||||
host: 'http://inventaire:3006'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user