From a009f15005872b821e4910cc66e4994d59e43756 Mon Sep 17 00:00:00 2001
From: ruslandoga <67764432+ruslandoga@users.noreply.github.com>
Date: Sat, 14 Sep 2024 12:45:23 +0700
Subject: [PATCH] back to files
---
clickhouse/ipv4-only.xml | 3 +++
compose.yml | 5 +----
2 files changed, 4 insertions(+), 4 deletions(-)
create mode 100644 clickhouse/ipv4-only.xml
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