Skip to content

Commit d41785f

Browse files
committed
revert docker image change
1 parent 9f0c6d4 commit d41785f

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff 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

3559
networks:

0 commit comments

Comments
 (0)