mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
replace sed command with explicit config for docker
This commit is contained in:
parent
98c52ede21
commit
e41952c892
@ -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
|
||||
|
4
docker/server/docker_related_config.xml
Normal file
4
docker/server/docker_related_config.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user