File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,9 +16,12 @@ services:
1616 ipv4_address : 172.18.0.2
1717
1818 iotdb :
19- image : apache/iotdb:1.0.1-standalone
19+ image : apache/iotdb:1.0.0-datanode
2020 restart : always
21- container_name : iotdb-standalone-1
21+ container_name : iotdb-dn-1
22+ depends_on :
23+ iotdb-confignode-1 :
24+ condition : service_healthy
2225 healthcheck :
2326 test : ["CMD", "ls", "/iotdb/data"]
2427 interval : 3s
@@ -30,6 +33,27 @@ services:
3033 networks :
3134 iotdb-network :
3235 ipv4_address : 172.18.0.3
36+ environment :
37+ - dn_rpc_address=iotdb
38+ - dn_internal_address=iotdb
39+ - dn_target_config_node_list=iotdb-confignode-1:22277
40+
41+ iotdb-confignode-1 :
42+ image : apache/iotdb:1.0.0-confignode
43+ restart : always
44+ container_name : iotdb-cn-1
45+ healthcheck :
46+ test : ["CMD", "ls", "/iotdb/data"]
47+ interval : 3s
48+ timeout : 5s
49+ retries : 30
50+ start_period : 30s
51+ networks :
52+ iotdb-network :
53+ ipv4_address : 172.18.0.4
54+ environment :
55+ - cn_internal_address=iotdb-confignode-1
56+ - cn_target_config_node_list=iotdb-confignode-1:22277
3357
3458
3559networks :
You can’t perform that action at this time.
0 commit comments