通过 Docker Compose 搭建 ClickHouse 单机版docker-compose-single-clickhouse.yml1234567891011121314151617181920212223242526version: '3'services: clickhouse: image: yandex/clickhouse-server container_name: clickhouse restart: always networks: - deng ports: - "8123:8123" - "9000:9000" volumes: # 默认配置 - ./data/config/docker_related_config.xml:/etc/clickhouse-server/config.d/docker_related_config.xml:rw - ./data/config/config.xml: ...