-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose-2c2d.yml
More file actions
133 lines (128 loc) · 3.69 KB
/
docker-compose-2c2d.yml
File metadata and controls
133 lines (128 loc) · 3.69 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "3"
services:
# ConfigNode 1
confignode-1:
image: apache/iotdb:2.0.1-beta-standalone
command: ["bash", "-c", "entrypoint.sh confignode"]
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data"]
interval: 3s
timeout: 5s
retries: 30
start_period: 30s
environment:
- cn_internal_address=127.0.0.1
- cn_internal_port=10710
- cn_consensus_port=10720
- cn_seed_config_node=127.0.0.1:10710
- schema_replication_factor=2
- data_replication_factor=2
privileged: true
volumes:
- ./iotdb/confignode-1/data:/iotdb/data
- ./iotdb/confignode-1/logs:/iotdb/logs
network_mode: host
# ConfigNode 2
confignode-2:
image: apache/iotdb:2.0.1-beta-standalone
command: ["bash", "-c", "entrypoint.sh confignode"]
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data"]
interval: 3s
timeout: 5s
retries: 30
start_period: 30s
environment:
- cn_internal_address=127.0.0.1
- cn_internal_port=10711
- cn_consensus_port=10721
- cn_seed_config_node=127.0.0.1:10710
- schema_replication_factor=2
- data_replication_factor=2
privileged: true
volumes:
- ./iotdb/confignode-2/data:/iotdb/data
- ./iotdb/confignode-2/logs:/iotdb/logs
network_mode: host
# DataNode 1
datanode-1:
image: apache/iotdb:2.0.1-beta-standalone
command: ["bash", "-c", "entrypoint.sh datanode"]
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
confignode-1:
condition: service_healthy
environment:
- dn_rpc_address=127.0.0.1
- dn_internal_address=127.0.0.1
- dn_seed_config_node=127.0.0.1:10710
- dn_rpc_port=6667
- dn_internal_port=10730
- dn_mpp_data_exchange_port=10740
- dn_schema_region_consensus_port=10750
- dn_data_region_consensus_port=10760
- schema_replication_factor=2
- data_replication_factor=2
privileged: true
volumes:
- ./iotdb/datanode-1/data:/iotdb/data
- ./iotdb/datanode-1/logs:/iotdb/logs
network_mode: host
# DataNode 2
datanode-2:
image: apache/iotdb:2.0.1-beta-standalone
command: ["bash", "-c", "entrypoint.sh datanode"]
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
confignode-1:
condition: service_healthy
confignode-2:
condition: service_healthy
environment:
- dn_rpc_address=127.0.0.1
- dn_internal_address=127.0.0.1
- dn_seed_config_node=127.0.0.1:10710
- dn_rpc_port=6668
- dn_internal_port=10731
- dn_mpp_data_exchange_port=10741
- dn_schema_region_consensus_port=10751
- dn_data_region_consensus_port=10761
- schema_replication_factor=2
- data_replication_factor=2
privileged: true
volumes:
- ./iotdb/datanode-2/data:/iotdb/data
- ./iotdb/datanode-2/logs:/iotdb/logs
network_mode: host
# C# Client
apache.iotdb.samples:
image: ${DOCKER_REGISTRY-}apacheiotdbsamples
depends_on:
confignode-1:
condition: service_healthy
confignode-2:
condition: service_healthy
datanode-1:
condition: service_healthy
datanode-2:
condition: service_healthy
build:
context: .
dockerfile: samples/Apache.IoTDB.Samples/Dockerfile
command: ["--multi", "localhost:6667", "localhost:6668"]
# command: ["sleep", "infinity"]
network_mode: host