代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。