inline ch config

This commit is contained in:
ruslandoga 2024-09-13 17:09:48 +07:00
parent e9c473ee2b
commit 040d33a76c
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +0,0 @@
<clickhouse>
<!-- Fixes "Listen [::]:9000 failed: Address family for hostname not supported". -->
<listen_host>0.0.0.0</listen_host>
</clickhouse>

View File

@ -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: "<clickhouse><listen_host>0.0.0.0</listen_host></clickhouse>"
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: