Skip to content

Instantly share code, notes, and snippets.

@cicorias
Created June 2, 2017 21:02
Show Gist options
  • Save cicorias/442c33aba5eda7f55e2c833164c5065a to your computer and use it in GitHub Desktop.
Save cicorias/442c33aba5eda7f55e2c833164c5065a to your computer and use it in GitHub Desktop.
A command that will npm install for running in docker-compose
# 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