后端开发开发DockerDocker ComposeClickHouseDockerCompose搭建ClickHouse单机版重言2023-06-122023-06-12通过 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:/etc/clickhouse-server/config.xml:rw - ./data/config/users.xml:/etc/clickhouse-server/users.xml:rw - /etc/localtime:/etc/localtime:ro # 运行日志 - ./data/log:/var/log/clickhouse-server # 数据持久 - ./data:/var/lib/clickhouse:rwnetworks: deng: external: true