Deliverable for D3.2

docker-compose.yml 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. version: '2'
  2. services:
  3. ## metadata service is a global service for node discovery
  4. metadata:
  5. image: prototype/metadata
  6. ports:
  7. - "8081:8081"
  8. ##
  9. ## decode node
  10. ##
  11. ## node_one is the api server for the logical decode node
  12. node_one:
  13. image : prototype/node
  14. ports:
  15. - "8080:8080"
  16. links :
  17. - "metadata:metadata"
  18. - "node_one_storage:storage"
  19. depends_on:
  20. - "metadata"
  21. - "node_one_storage"
  22. environment:
  23. # address of the metadata service
  24. - METADATA_SERVICE_ADDRESS=http://metadata:8081
  25. # address of the storage service
  26. - STORAGE_SERVICE_ADDRESS=http://node_one_storage:8083
  27. # address of the node
  28. # TODO : resolve this to be the external address
  29. #- WEBSERVICES_URL=http://node_one:8080
  30. ## node_one_device_hub is an instance of device hub for IOT integration
  31. ##node_one_device_hub:
  32. ## image: thingful/device-hub
  33. ## links:
  34. ## - "node_one:node"
  35. ## node_one_storage is a server responsible for managing the local
  36. ## storage on the node - fronts a redis server for persistence
  37. node_one_storage:
  38. image: prototype/storage
  39. ports:
  40. - "8083:8083"
  41. depends_on:
  42. - "node_one_storage_redis"
  43. links:
  44. - "node_one_storage_redis:redis"
  45. environment:
  46. - REDIS_SERVICE_ADDRESS=redis:6379
  47. # node_one_storage_redis is a redis srver instance
  48. # NOTE : data is not persisted
  49. node_one_storage_redis:
  50. image: redis:3.0.7