replace sed command with explicit config for docker

This commit is contained in:
Nikolay Volosatov 2018-01-22 10:51:27 +03:00
parent 98c52ede21
commit e41952c892
2 changed files with 5 additions and 2 deletions

View File

@ -12,8 +12,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* /var/cache/debconf && \
apt-get clean
RUN sed -i 's,<listen_host>127.0.0.1</listen_host>,<listen_host>0.0.0.0</listen_host>,' /etc/clickhouse-server/config.xml && \
sed -i 's,<listen_host>::1</listen_host>,,' /etc/clickhouse-server/config.xml
COPY docker_related_config.xml /etc/clickhouse-server/config.d/
RUN chown -R clickhouse /etc/clickhouse-server/
USER clickhouse

View File

@ -0,0 +1,4 @@
<yandex>
<!-- Listen wildcard address to allow accepting connections from other containers and host network. -->
<listen_host>0.0.0.0</listen_host>
</yandex>