Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rongfengliang/clickhouse-docker-compose
clickhouse-docker-compose
https://github.com/rongfengliang/clickhouse-docker-compose
clickhouse docker-compose
Last synced: about 1 month 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T08:02:07.000Z (11 months ago)
- Last Synced: 2024-01-31T09:26:28.643Z (11 months ago)
- Topics: clickhouse, docker-compose
- Size: 294 KB
- Stars: 33
- Watchers: 1
- Forks: 25
- 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 clientdocker 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/[email protected])