-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (24 loc) · 880 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
25 lines (24 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
services:
clickhouse:
# Pinned to the EXACT version running on ch-prod-01 (Hetzner) so local/CI
# tests exercise the same engine as production — refreshable-MV semantics,
# alias resolution and date/time functions can differ across CH releases.
# Before changing this, re-check the live `SELECT version()` on ch-prod-01.
image: clickhouse/clickhouse-server:26.3.10.60
ports:
- '8123:8123'
- '9000:9000'
volumes:
- clickhouse-data:/var/lib/clickhouse
- ./packages/prices-clickhouse/schema/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
environment:
CLICKHOUSE_DB: prices
CLICKHOUSE_USER: default
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
healthcheck:
test: ['CMD', 'clickhouse-client', '--query', 'SELECT 1']
interval: 5s
timeout: 3s
retries: 10
volumes:
clickhouse-data: