# clickhouse-docker-compose **Repository Path**: who7708/clickhouse-docker-compose ## Basic Information - **Project Name**: clickhouse-docker-compose - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # clickhouse with docker-compose running ## How to run ```code docker-compose up -d ``` ## access address ```code http interface http://hostip:8123 for native client connect port 9000 ``` ## how to Connect server ```code with docker client docker run -it yandex/clickhouse-client --host ${serverip|hostip} ``` ## import data * create table ```code CREATE TABLE wikistat ( project String, subproject String, hits UInt64, size UInt64 ) ENGINE = Log; ``` * insert data ```code docker run -i yandex/clickhouse-client --format_csv_delimiter="|" --host ${serverhost} --query="INSERT INTO d efault.wikistat3 FORMAT CSV" < ./data/info.csv ``` * select result > use ui tools HouseOps https://github.com/HouseOps/HouseOps ```code select * from default.wikistat; ``` ## some images ![image](./images/WX20181031-212927@2x.png)