move image build in separate dockerfiles

This commit is contained in:
Vincent Jumo
2018-08-23 18:01:05 +02:00
parent f0a29f2e77
commit cf06e40ba0
5 changed files with 32 additions and 7 deletions

View File

@@ -8,17 +8,17 @@ services:
COUCHDB_USER: "couchdb"
COUCHDB_PASSWORD: "password"
inventaire:
image: node:6.11.1
command: "npm start"
build:
context: ./.
dockerfile: Dockerfile.inventaire
ports:
- "3006:3006"
volumes:
- ./inventaire:/opt/inventaire
- ./utils/config/inventaire-local.coffee:/opt/inventaire/config/local.coffee
links:
- couch
working_dir: /opt/inventaire
depends_on:
- couch
- entities-search-engine
elasticsearch:
image: elasticsearch
@@ -35,6 +35,7 @@ services:
volumes:
- ./entities-search-engine:/opt/entities-search-engine
- ./utils/config/entities-search-engine-local.coffee:/opt/entities-search-engine/config/local.coffee
- ./utils/elastic_setup.sh:/opt/entities-search-engine/
links:
- couch
working_dir: /opt/entities-search-engine