services: clickhouse: image: clickhouse/clickhouse-server:latest container_name: clickhouse network_mode: host environment: - CLICKHOUSE_DB=default - CLICKHOUSE_USER=default - CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 - CLICKHOUSE_PASSWORD=clickhouse ports: - "8123:8123" - "9000:9000" - "9009:9009" ulimits: nofile: soft: 262144 hard: 262144 healthcheck: test: curl http://localhost:8123/ping || exit 1 interval: 30s timeout: 5s retries: 3 start_period: 30s restart: unless-stopped