-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-1c3d.yml
More file actions
110 lines (106 loc) · 3.22 KB
/
Copy pathdocker-compose-1c3d.yml
File metadata and controls
110 lines (106 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
services:
# ConfigNode (single instance for metadata management)
iotdb-confignode:
image: apache/iotdb:${IOTDB_VERSION:-2.0.6}-confignode
container_name: iotdb-confignode
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data"]
interval: 3s
timeout: 5s
retries: 30
start_period: 30s
networks:
- iotdb-network
environment:
- cn_internal_address=iotdb-confignode
- cn_internal_port=10710
- cn_seed_config_node=iotdb-confignode:10710
- schema_replication_factor=3
- data_replication_factor=2
- IOTDB_JMX_OPTS=-Xms256M -Xmx256M -XX:MaxDirectMemorySize=128M
- CONFIGNODE_JMX_OPTS=-Xms256M -Xmx256M -XX:MaxDirectMemorySize=128M
# DataNode 1
iotdb-datanode-1:
image: apache/iotdb:${IOTDB_VERSION:-2.0.6}-datanode
container_name: iotdb-datanode-1
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode:
condition: service_healthy
ports:
- "6667:6667"
networks:
- iotdb-network
environment:
- dn_rpc_address=iotdb-datanode-1
- dn_internal_address=iotdb-datanode-1
- dn_seed_config_node=iotdb-confignode:10710
- dn_rpc_port=6667
- schema_replication_factor=3
- data_replication_factor=2
- IOTDB_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
- DATANODE_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
# DataNode 2
iotdb-datanode-2:
image: apache/iotdb:${IOTDB_VERSION:-2.0.6}-datanode
container_name: iotdb-datanode-2
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode:
condition: service_healthy
ports:
- "6668:6667"
networks:
- iotdb-network
environment:
- dn_rpc_address=iotdb-datanode-2
- dn_internal_address=iotdb-datanode-2
- dn_seed_config_node=iotdb-confignode:10710
- dn_rpc_port=6667
- schema_replication_factor=3
- data_replication_factor=2
- IOTDB_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
- DATANODE_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
# DataNode 3
iotdb-datanode-3:
image: apache/iotdb:${IOTDB_VERSION:-2.0.6}-datanode
container_name: iotdb-datanode-3
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode:
condition: service_healthy
ports:
- "6669:6667"
networks:
- iotdb-network
environment:
- dn_rpc_address=iotdb-datanode-3
- dn_internal_address=iotdb-datanode-3
- dn_seed_config_node=iotdb-confignode:10710
- dn_rpc_port=6667
- schema_replication_factor=3
- data_replication_factor=2
- IOTDB_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
- DATANODE_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
networks:
iotdb-network:
driver: bridge