本文介绍docker-compose方式部署clickhouse数据库
编写docker-compose.yml文件:
version: '3'
services:
elasticsearch:
image: clickhouse/clickhouse-server
container_name: clickhouse-server
ulimits:
nofile:
soft: "262144"
hard: "262144"
volumes:
- /home/clickhouse/data:/var/lib/clickhouse/
- /home/clickhouse/logs:/var/log/clickhouse-server/
- ./config.d:/etc/clickhouse-server/config.d/*.xml
- ./usert.d:/etc/clickhouse-server/usert.d/*.xml
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d/
ports:
- 18123:8123 # http接口用
- 19000:9000 # 本地客户端用
docker-compose up -d
启动后,使用datagrid工具,连接127.0.0.1:18123即可
标签:compose,server,262144,ClickHouse,本地,home,docker,Docker,clickhouse From: https://www.cnblogs.com/shenjian-online/p/16814816.html