back to files

This commit is contained in:
ruslandoga 2024-09-14 12:45:23 +07:00
parent dddf076d50
commit a009f15005
2 changed files with 4 additions and 4 deletions

3
clickhouse/ipv4-only.xml Normal file
View File

@ -0,0 +1,3 @@
<clickhouse>
<listen_host>0.0.0.0</listen_host>
</clickhouse>

View File

@ -20,10 +20,7 @@ services:
- ./clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro
# This makes ClickHouse bind to IPv4 only, since Docker doesn't enable IPv6 in bridge networks by default.
# Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings.
- type: bind
read_only: true
target: /etc/clickhouse-server/config.d/ipv4-only.xml
content: "<clickhouse><listen_host>0.0.0.0</listen_host></clickhouse>"
- ./clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro
ulimits:
nofile:
soft: 262144