File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222 - name : Set Docker & Run Test
2323 run : |
24- docker-compose -f docker-compose.yml up --build --abort-on-container-exit --remove-orphans
24+ docker network create --subnet 172.18.0.0/24 iotdb-network && docker -compose -f docker-compose.yml up --build --abort-on-container-exit --remove-orphans
2525
2626 - name : Clean IoTDB & Shut Down Docker
2727 run : |
Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ services:
1212 context : .
1313 dockerfile : samples/Apache.IoTDB.Samples/Dockerfile
1414 networks :
15- - iotdb-network
15+ iotdb-network :
16+ ipv4_address : 172.18.0.2
1617
1718 iotdb :
18- image : apache/iotdb:0.13.0-node
19+ image : apache/iotdb:1.0.0-datanode
1920 restart : always
20- container_name : iotdb
21+ container_name : iotdb-dn-1
22+ depends_on :
23+ iotdb-confignode-1 :
24+ condition : service_healthy
2125 healthcheck :
2226 test : ["CMD", "ls", "/iotdb/data"]
2327 interval : 3s
@@ -27,9 +31,31 @@ services:
2731 ports :
2832 - 6667:6667
2933 networks :
30- - iotdb-network
34+ iotdb-network :
35+ 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
3157
32- networks :
33- iotdb-network :
34- driver : bridge
3558
59+ networks :
60+ iotdb-network :
61+ external : true
You can’t perform that action at this time.
0 commit comments