docker run -p 8123:8123 -p 9000:9000 -p 9009:9009 -d --name some-clickhouse-server --ulimit nofile=262144:262144 -v /home/user/config.xml:/etc/clickhouse-server/config.xml yandex/clickhouse-server
<!-- <zookeeper incl="zookeeper-servers" optional="true" /> -->
<zookeeper-servers>
<node>
<host>ned</host>
<port>2181</port>
</node>
</zookeeper-servers><remote_servers incl="clickhouse_remote_servers" />-->
<remote_servers>
<test_cluster>
<shard>
<replica>
<host>ned</host>
<port>9000</port>
</replica>
<replica>
<host>todd</host>
<port>9000</port>
</replica>
<replica>
<host>rod</host>
<port>9000</port>
</replica>
</shard>
</test_cluster>
</remote_servers><!-- <macros incl="macros" optional="true" /> -->
<macros>
<layer>01</layer>
<shard>01</shard>
<replica>ned</replica>
<!--<replica>todd</replica>
<replica>rod</replica>-->
</macros>
-v <your-config>: /etc/clickhouse-server/config.d/config.xml
By default, the path to the file with substitutions is '/etc/metrika.xml'. This can be changed in the config in the 'include_from' element. The substitution values are specified in '/yandex/substitution_name' elements of this file.