docker-compose-watch-mode.yml 650 B

123456789101112131415161718192021
  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. watch-mode:
  15. image: hyperledger/cello-baseimage
  16. container_name: watch-mode
  17. volumes: # This should be removed in product env
  18. - $ROOT_PATH/src/themes/react/static:/app
  19. command: bash -c "cd /app && npm run watch-mode"