加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yaml 2.75 KB
一键复制 编辑 原始数据 按行查看 历史
liugp 提交于 2023-06-23 17:33 . init
version: '3'
services:
ck-node-1:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/clickhouse:23.5.3.24
container_name: ck-node-1
hostname: ck-node-1
restart: always
privileged: true
env_file:
- .env
volumes:
- ./config/config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
expose:
- "${CilckHouse_PORT}"
ports:
- "${ClickHouse_HTTP_PORT}"
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :${CilckHouse_PORT} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
ck-node-2:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/clickhouse:23.5.3.24
container_name: ck-node-2
hostname: ck-node-2
restart: always
privileged: true
env_file:
- .env
volumes:
- ./config/config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
expose:
- "${CilckHouse_PORT}"
ports:
- "${ClickHouse_HTTP_PORT}"
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :${CilckHouse_PORT} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
ck-node-3:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/clickhouse:23.5.3.24
container_name: ck-node-3
hostname: ck-node-3
restart: always
privileged: true
env_file:
- .env
volumes:
- ./config/config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
expose:
- "${CilckHouse_PORT}"
ports:
- "${ClickHouse_HTTP_PORT}"
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :${CilckHouse_PORT} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
ck-node-4:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/clickhouse:23.5.3.24
container_name: ck-node-4
hostname: ck-node-4
restart: always
privileged: true
env_file:
- .env
volumes:
- ./config/config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
expose:
- "${CilckHouse_PORT}"
ports:
- "${ClickHouse_HTTP_PORT}"
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :${CilckHouse_PORT} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
# 连接外部网络
networks:
hadoop-network:
external: true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化