use host network mode to use current config hosts
This commit is contained in:
@@ -12,8 +12,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
NODE_ENV: "tests"
|
NODE_ENV: "tests"
|
||||||
NODE_APP_INSTANCE: "tests-alt"
|
NODE_APP_INSTANCE: "tests-alt"
|
||||||
volumes:
|
|
||||||
- ./utils/config/inventaire-local.coffee:/opt/inventaire/config/local.coffee
|
|
||||||
working_dir: /opt/inventaire
|
working_dir: /opt/inventaire
|
||||||
entities-search-engine:
|
entities-search-engine:
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ services:
|
|||||||
COUCHDB_PASSWORD: "password"
|
COUCHDB_PASSWORD: "password"
|
||||||
volumes:
|
volumes:
|
||||||
- './data/couch:/usr/local/var/lib/couchdb'
|
- './data/couch:/usr/local/var/lib/couchdb'
|
||||||
|
network_mode: host
|
||||||
inventaire:
|
inventaire:
|
||||||
build:
|
build:
|
||||||
context: ./.
|
context: ./.
|
||||||
@@ -17,8 +18,8 @@ services:
|
|||||||
- "3006:3006"
|
- "3006:3006"
|
||||||
volumes:
|
volumes:
|
||||||
- ./inventaire:/opt/inventaire
|
- ./inventaire:/opt/inventaire
|
||||||
- ./utils/config/inventaire-local.coffee:/opt/inventaire/config/local.coffee
|
|
||||||
working_dir: /opt/inventaire
|
working_dir: /opt/inventaire
|
||||||
|
network_mode: host
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: elasticsearch:2.4
|
image: elasticsearch:2.4
|
||||||
environment:
|
environment:
|
||||||
@@ -29,6 +30,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# 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'
|
||||||
|
network_mode: host
|
||||||
entities-search-engine:
|
entities-search-engine:
|
||||||
build:
|
build:
|
||||||
context: ./.
|
context: ./.
|
||||||
@@ -38,5 +40,5 @@ services:
|
|||||||
- "3213:3213"
|
- "3213:3213"
|
||||||
volumes:
|
volumes:
|
||||||
- ./entities-search-engine:/opt/entities-search-engine
|
- ./entities-search-engine:/opt/entities-search-engine
|
||||||
- ./utils/config/entities-search-engine-local.coffee:/opt/entities-search-engine/config/local.coffee
|
|
||||||
working_dir: /opt/entities-search-engine
|
working_dir: /opt/entities-search-engine
|
||||||
|
network_mode: host
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
module.exports =
|
|
||||||
elastic:
|
|
||||||
host: 'http://elasticsearch:9200'
|
|
||||||
inventaire:
|
|
||||||
host: 'http://inventaire:3006'
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
module.exports =
|
|
||||||
host: '0.0.0.0'
|
|
||||||
port: 3006
|
|
||||||
elasticsearch:
|
|
||||||
host: 'http://elasticsearch:9200'
|
|
||||||
db:
|
|
||||||
protocol: 'http'
|
|
||||||
# host defined in docker-compose couchdb image name
|
|
||||||
host: 'couch'
|
|
||||||
port: '5984'
|
|
||||||
username: 'couchdb'
|
|
||||||
password: 'password'
|
|
||||||
debug: true
|
|
||||||
enableDesignDocSync: true
|
|
||||||
replication:
|
|
||||||
username: 'couchdb'
|
|
||||||
password: 'password'
|
|
||||||
jobs:
|
|
||||||
'wd:popularity':
|
|
||||||
run: false
|
|
||||||
'inv:deduplicate':
|
|
||||||
run: true
|
|
||||||
entitiesSearchEngine:
|
|
||||||
host: 'http://entities-search-engine:3213'
|
|
||||||
updateEnabled: true
|
|
||||||
delay: 3000
|
|
||||||
Reference in New Issue
Block a user