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: