docker-compose.yaml
配置
version: "3" services: clickhouse: image: clickhouse/clickhouse-server:22.2.3.5 container_name: clickhouse hostname: clickhouse restart: always ports: - 8123:8123 - 9000:9000 volumes: - clickhouse-data:/var/lib/clickhouse - clickhouse-config:/etc/clickhouse-server volumes: clickhouse-data: clickhouse-config: