docker-compose-iotdb.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: '3.9'
  2. services:
  3. iotdb:
  4. container_name: iotdb
  5. hostname: iotdb
  6. image: apache/iotdb:1.1.0-standalone
  7. restart: always
  8. environment:
  9. - enable_rest_service=true
  10. - cn_internal_address=iotdb
  11. - cn_internal_port=10710
  12. - cn_consensus_port=10720
  13. - cn_target_config_node_list=iotdb:10710
  14. - dn_rpc_address=iotdb
  15. - dn_internal_address=iotdb
  16. - dn_rpc_port=6667
  17. - dn_mpp_data_exchange_port=10740
  18. - dn_schema_region_consensus_port=10750
  19. - dn_data_region_consensus_port=10760
  20. - dn_target_config_node_list=iotdb:10710
  21. # volumes:
  22. # - ./data:/iotdb/data
  23. # - ./logs:/iotdb/logs
  24. expose:
  25. - "18080"
  26. # IoTDB's REST interface, uncomment for local testing
  27. # ports:
  28. # - "18080:18080"
  29. networks:
  30. - emqx_bridge
  31. iotdb_0_13:
  32. container_name: iotdb013
  33. hostname: iotdb013
  34. image: apache/iotdb:0.13.4-node
  35. restart: always
  36. environment:
  37. - enable_rest_service=true
  38. - cn_internal_address=iotdb013
  39. - cn_internal_port=10710
  40. - cn_consensus_port=10720
  41. - cn_target_config_node_list=iotdb013:10710
  42. - dn_rpc_address=iotdb013
  43. - dn_internal_address=iotdb013
  44. - dn_rpc_port=6667
  45. - dn_mpp_data_exchange_port=10740
  46. - dn_schema_region_consensus_port=10750
  47. - dn_data_region_consensus_port=10760
  48. - dn_target_config_node_list=iotdb013:10710
  49. volumes:
  50. - ./iotdb013/iotdb-rest.properties:/iotdb/conf/iotdb-rest.properties
  51. # - ./data:/iotdb/data
  52. # - ./logs:/iotdb/logs
  53. expose:
  54. - "18080"
  55. # IoTDB's REST interface, uncomment for local testing
  56. # ports:
  57. # - "18080:18080"
  58. networks:
  59. - emqx_bridge