Created
June 2, 2017 21:02
-
-
Save cicorias/442c33aba5eda7f55e2c833164c5065a to your computer and use it in GitHub Desktop.
A command that will npm install for running in docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This compose file will deploy the services, and bootup a mongo server. | |
# Local `/opt/cello/mongo` will be used for the db storage. | |
# dashboard: dashboard service of cello, listen on 8080 | |
# app: app service of cello, listen on 80 | |
# nginx: front end | |
# mongo: mongo db | |
version: '2' | |
services: | |
# cello dashboard service | |
npm-install: | |
image: node | |
container_name: npm-install | |
volumes: # This should be removed in product env | |
- ./src/themes/react/static:/app | |
command: bash -c "cd /app && npm install --loglevel http" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment