https://github.com/rongfengliang/clickhouse-docker-compose
clickhouse-docker-compose
https://github.com/rongfengliang/clickhouse-docker-compose
clickhouse docker-compose
Last synced: 3 months ago
JSON representation
clickhouse-docker-compose
- Host: GitHub
- URL: https://github.com/rongfengliang/clickhouse-docker-compose
- Owner: rongfengliang
- Created: 2018-10-31T07:27:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T08:02:07.000Z (over 1 year ago)
- Last Synced: 2025-07-20T04:37:39.091Z (3 months ago)
- Topics: clickhouse, docker-compose
- Size: 294 KB
- Stars: 37
- Watchers: 1
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
