Skip to content

Commit 8daabe3

Browse files
committed
chore: add clickhouse config
1 parent 08b37ce commit 8daabe3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: '3.8'
2+
3+
services:
4+
clickhouse:
5+
image: clickhouse/clickhouse-server:latest
6+
container_name: tianji-clickhouse
7+
ports:
8+
- "127.0.0.1:8123:8123" # HTTP endpoint
9+
# - "9000:9000" # Native endpoint
10+
- "127.0.0.1:9004:9004" # Mysql endpoint
11+
environment:
12+
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
13+
- CLICKHOUSE_DB=tianji
14+
- CLICKHOUSE_USER=tianji
15+
# - CLICKHOUSE_PASSWORD=tianji
16+
# volumes:
17+
# - clickhouse_data:/var/lib/clickhouse
18+
# - ./config.xml:/etc/clickhouse-server/config.xml
19+
restart: unless-stopped
20+
21+
# volumes:
22+
# clickhouse_data:
23+
# driver: local
24+
# clickhouse_config:
25+
# driver: local

0 commit comments

Comments
 (0)