Skip to content

Instantly share code, notes, and snippets.

@luthfianto
Created August 4, 2023 16:13
Show Gist options
  • Save luthfianto/e3114c87468e3c6512465464d58a713b to your computer and use it in GitHub Desktop.
Save luthfianto/e3114c87468e3c6512465464d58a713b to your computer and use it in GitHub Desktop.
version: '3'
services:
clickhouse-server:
image: clickhouse/clickhouse-server
container_name: clickhouse-server
volumes:
# - ./config.xml:/etc/clickhouse-server/config.xml
- ./data:/var/lib/clickhouse
ports:
- "8123:8123" # HTTP port
- "8000:9000" # Native client port
- "8888:9004" # Native client port
- "8009:9009" # TCP replication port
environment:
- CLICKHOUSE_CONFIG=/etc/clickhouse-server/config.xml
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
- TZ=UTC # Set timezone if needed
networks:
- clickhouse-net
networks:
clickhouse-net:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment