docker-compose.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 operator dashboard service
  14. operator-dashboard:
  15. image: hyperledger/cello-operator-dashboard
  16. container_name: operator-dashboard-test
  17. hostname: cello-operator-dashboard
  18. environment:
  19. - MONGO_URL=mongodb://mongo:27017
  20. - MONGO_DB=dev
  21. - DEBUG=False # in debug mode, service will auto-restart
  22. - LOG_LEVEL=INFO # what level log will be output
  23. - STATIC_FOLDER=$STATIC_FOLDER
  24. - TEMPLATE_FOLDER=$TEMPLATE_FOLDER
  25. expose:
  26. - "8080"
  27. volumes: # This should be removed in product env
  28. - ../src:/src
  29. - ./:/test
  30. command: bash -c "python /test/cases/run.py"
  31. # mongo database, may use others in future
  32. mongo:
  33. image: mongo:3.4.10
  34. hostname: mongo
  35. container_name: mongo-test
  36. mem_limit: 2048m
  37. environment:
  38. - NO_USED=0