Skip to content

Commit 90ad093

Browse files
authored
fix: remove yugabyte --advertise_address=0.0.0.0 causing unreachable proxies (#79)
1 parent d4af45b commit 90ad093

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • src/commands/start/yugabyte

src/commands/start/yugabyte/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,16 @@ fn spawn_yugabyte_instance(
9696

9797
// Add YugabyteDB startup command with full configuration
9898
// CRITICAL: --base_dir must match the volume mount location
99+
// NOTE: --advertise_address is intentionally omitted. Setting it to 0.0.0.0 caused
100+
// seed DDL via yugabyted to succeed but left the YCQL/YSQL proxies unreachable from
101+
// other containers. Without --advertise_address, yugabyted auto-detects the container's
102+
// IP on the Docker bridge network, which is reachable by other containers on the same network.
99103
docker_args.extend_from_slice(&[
100104
"/yugabyte/bin/yugabyted",
101105
"start",
102106
"--base_dir=/home/foc-user/yb_base",
103107
"--ui=true",
104108
"--callhome=false",
105-
"--advertise_address=0.0.0.0",
106109
"--master_flags=rpc_bind_addresses=0.0.0.0",
107110
"--tserver_flags=rpc_bind_addresses=0.0.0.0,pgsql_proxy_bind_address=0.0.0.0:5433,cql_proxy_bind_address=0.0.0.0:9042",
108111
"--daemon=false",

0 commit comments

Comments
 (0)