diff --git a/clickhouse/ipv4-only.xml b/clickhouse/ipv4-only.xml
new file mode 100644
index 0000000..7eb0a5c
--- /dev/null
+++ b/clickhouse/ipv4-only.xml
@@ -0,0 +1,3 @@
+
+ 0.0.0.0
+
diff --git a/compose.yml b/compose.yml
index ff6c877..d8a9962 100644
--- a/compose.yml
+++ b/compose.yml
@@ -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: "0.0.0.0"
+ - ./clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro
ulimits:
nofile:
soft: 262144