clickhouse
This commit is contained in:
28
clickhouse/docker-compose.yml
Normal file
28
clickhouse/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
clickhouse:
|
||||||
|
image: clickhouse/clickhouse-server:latest
|
||||||
|
container_name: clickhouse-server
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "8123:8123" # HTTP 接口(DBeaver/HTTP 客户端使用)
|
||||||
|
- "9000:9000" # 原生 TCP 协议(clickhouse-client 使用)
|
||||||
|
- "9004:9004" # MySQL 协议(可选)
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/clickhouse # 数据持久化
|
||||||
|
- /etc/localtime:/etc/localtime:ro # 同步时区[8](@ref)
|
||||||
|
environment:
|
||||||
|
- CLICKHOUSE_USER=admin
|
||||||
|
- CLICKHOUSE_PASSWORD=your_secure_password
|
||||||
|
- TZ=Asia/Shanghai # 时区设置
|
||||||
|
ulimits:
|
||||||
|
nofile:
|
||||||
|
soft: 262144
|
||||||
|
hard: 262144 # 高并发连接优化[3,6](@ref)
|
||||||
|
networks:
|
||||||
|
- clickhouse-net
|
||||||
|
|
||||||
|
networks:
|
||||||
|
clickhouse-net:
|
||||||
|
driver: bridge
|
||||||
Reference in New Issue
Block a user