Files
docker-inventaire/docker-compose-test.yml
Vincent Jumo b3e466b380 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
2018-10-16 13:21:41 +02:00

47 lines
1.3 KiB
YAML

version: '3'
services:
couch:
image: couchdb:1.7.1
ports:
- "5984:5984"
environment:
COUCHDB_USER: "couchdb"
COUCHDB_PASSWORD: "password"
volumes:
# backup folder when container is removed
- './data/couch-test:/usr/local/var/lib/couchdb'
inventaire:
build:
context: ./.
dockerfile: Dockerfile.inventaire
environment:
NODE_ENV: "tests"
NODE_APP_INSTANCE: "tests-alt"
ports:
- "3006:3006"
volumes:
- ./inventaire:/opt/inventaire
- ./utils/config/inventaire-local.coffee:/opt/inventaire/config/local.coffee
working_dir: /opt/inventaire
elasticsearch:
image: elasticsearch:2.4
environment:
- 'http.host=0.0.0.0'
- 'transport.host=127.0.0.1'
ports :
- '127.0.0.1:9200:9200'
volumes:
- './data/es:/usr/share/elasticsearch/data'
entities-search-engine:
build:
context: ./.
dockerfile: Dockerfile.entities-search-engine
environment:
NODE_ENV: "tests"
ports:
- "3213:3213"
volumes:
- ./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