From 040d33a76c3d92e97d8a933cd16242cb270ae190 Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:09:48 +0700 Subject: [PATCH] inline ch config --- clickhouse/ipv4.xml | 4 ---- compose.yml | 8 ++++++-- 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 clickhouse/ipv4.xml diff --git a/clickhouse/ipv4.xml b/clickhouse/ipv4.xml deleted file mode 100644 index aa5abc5..0000000 --- a/clickhouse/ipv4.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - 0.0.0.0 - diff --git a/compose.yml b/compose.yml index 200096d..ff6c877 100644 --- a/compose.yml +++ b/compose.yml @@ -19,7 +19,11 @@ services: - event-logs:/var/log/clickhouse-server - ./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. - - ./clickhouse/ipv4.xml:/etc/clickhouse-server/config.d/ipv4.xml:ro + # 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" ulimits: nofile: soft: 262144 @@ -38,8 +42,8 @@ services: condition: service_healthy plausible_events_db: condition: service_healthy - # Note that setting ports opens firewall for external access. ports: + # Note that setting ports opens firewall for external access. - 80:80 - 443:443 volumes: