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