1services:
2 clickhouse:
3 image: clickhouse/clickhouse-server:latest
4 container_name: clickhouse
5 network_mode: host
6 environment:
7 - CLICKHOUSE_DB=default
8 - CLICKHOUSE_USER=default
9 - CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
10 - CLICKHOUSE_PASSWORD=clickhouse
11 ports:
12 - "8123:8123"
13 - "9000:9000"
14 - "9009:9009"
15 ulimits:
16 nofile:
17 soft: 262144
18 hard: 262144
19 healthcheck:
20 test: curl http://localhost:8123/ping || exit 1
21 interval: 30s
22 timeout: 5s
23 retries: 3
24 start_period: 30s
25 restart: unless-stopped