Skip to content

Instantly share code, notes, and snippets.

@Nelwhix
Created December 9, 2025 06:24
Show Gist options
  • Select an option

  • Save Nelwhix/191d5284db5130cf61e12850edf6b434 to your computer and use it in GitHub Desktop.

Select an option

Save Nelwhix/191d5284db5130cf61e12850edf6b434 to your computer and use it in GitHub Desktop.
Lightweight Docker compose for Clickhouse on Macos ARM64
services:
clickhouse-server:
image: clickhouse/clickhouse-server:24.3-alpine
container_name: clickhouse-server
restart: unless-stopped
mem_limit: 2g
cpus: 1.0
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- clickhouse_data:/var/lib/clickhouse
- clickhouse_logs:/var/log/clickhouse-server
ports:
- "8123:8123" # HTTP
- "9001:9000" # Native client
- "9009:9009" # Interserver
environment:
- CLICKHOUSE_DB=default
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
- CLICKHOUSE_DISABLE_INTERNAL_DNS_CACHE=1
- CLICKHOUSE_LOG_LEVEL=warning
cap_add:
- SYS_NICE
volumes:
clickhouse_data:
clickhouse_logs:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment