Skip to content

Commit

Permalink
duplicate docker-compose files for building / running purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
inistcnrs committed Mar 28, 2018
1 parent 9d31771 commit b2af175
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ run-prod: ## run conditor-api with prod parameters
NODE_ENV=production docker-compose up -d

run-debug: ## run conditor-api with debug parameters
NODE_ENV=development DEBUG=* docker-compose -f ./docker-compose.yml up
NODE_ENV=development DEBUG=* docker-compose -f ./docker-compose.build.yml up

kill: ## stop running containers (the hard way)
docker-compose -f ./docker-compose.yml kill
Expand Down
30 changes: 30 additions & 0 deletions docker-compose.buil.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '2'
services:

conditorapi:
container_name: conditor-api
build:
context: .
args:
- http_proxy
- https_proxy
image: conditor/conditor-api:1.0.0-beta.1
environment :
LOG_PATH: /var/log
CONDITOR_API_HOST: 0.0.0.0
CONDITOR_API_PORT: 63332
CONDITOR_ES_HOSTS: ${CONDITOR_ES_HOSTS}
NODE_ENV: ${NODE_ENV}
CONDITOR_ES_VERSION: 6.x

ports:
- 63332:63332
networks:
- apinet
volumes:
- ${LOG_PATH}:/root/var/log
restart: "on-failure:5"

networks:
apinet:
driver: bridge
5 changes: 0 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ services:

conditorapi:
container_name: conditor-api
build:
context: .
args:
- http_proxy
- https_proxy
image: conditor/conditor-api:1.0.0-beta.1
environment :
LOG_PATH: /var/log
Expand Down

0 comments on commit b2af175

Please sign in to comment.