Skip to content

Commit

Permalink
[script] docker compose iotdb 1.0 (#812)
Browse files Browse the repository at this point in the history
* add iotdb v1.0.1 docker-compose

* add iotdb v1.0.1 docker-compose
  • Loading branch information
Ceilzcx authored and tomsun28 committed Jan 16, 2024
1 parent d34655c commit 5f5d37c
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ warehouse:
rpc-port: 6667
username: root
password: root
# org.apache.iotdb.session.util.Version: V_O_12 || V_0_13
# org.apache.iotdb.session.util.Version: V_O_13 || V_1_0
# 如果你使用docker-compose-1.0.yaml, 不要忘记修i该version为V_1_0
version: V_0_13
# if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0
query-timeout-in-ms: -1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
a
version: "3.8"

networks:
heartzbeat:
driver: bridge

services:
iotdb:
image: apache/iotdb:1.0.1-standalone
hostname: iotdb
container_name: iotdb
restart: always
ports:
- "6667:6667"
environment:
TZ: Asia/Shanghai
environment:
- cn_internal_address=iotdb
- cn_internal_port=10710
- cn_consensus_port=10720
- cn_target_config_node_list=iotdb:10710
- dn_rpc_address=iotdb
- dn_rpc_port=6667
- dn_mpp_data_exchange_port=10740
- dn_schema_region_consensus_port=10750
- dn_data_region_consensus_port=10760
- dn_target_config_node_list=iotdb:10710
volumes:
- ./dbdata/iotdbdata:/iotdb/data
- ./dbdata/iotdblogs:/iotdb/logs
networks:
- heartzbeat
hertzbeat:
image: tancloud/hertzbeat
container_name: hertzbeat
hostname: hertzbeat
restart: always
environment:
TZ: Asia/Shanghai
LANG: zh_CN.UTF-8
depends_on:
- iotdb
volumes:
- ./conf/application.yml:/opt/hertzbeat/config/application.yml
- ./conf/sureness.yml:/opt/hertzbeat/config/sureness.yml
ports:
- "1157:1157"
networks:
- heartzbeat


0 comments on commit 5f5d37c

Please sign in to comment.