docker-compose-npm-install.yaml 682 B

12345678910111213141516171819202122
  1. # This compose file will deploy the services, and bootup a mongo server.
  2. # Copyright IBM Corp., All Rights Reserved.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Local `/opt/cello/mongo` will be used for the db storage.
  7. # dashboard: dashboard service of cello, listen on 8080
  8. # app: app service of cello, listen on 80
  9. # nginx: front end
  10. # mongo: mongo db
  11. version: '2'
  12. services:
  13. # cello dashboard service
  14. npm-install:
  15. image: node:9.3
  16. volumes: # This should be removed in product env
  17. - $ROOT_PATH/src/$STATIC_FOLDER:/app
  18. environment:
  19. - NPM_REGISTRY=$NPM_REGISTRY
  20. command: bash -c "cd /app && npm install --loglevel http --registry $NPM_REGISTRY"