Running Temporal services independently though docker run throws error: "unable to bootstrap ringpop"

I am trying to run temporal server by launching each services independently in the following order: history → matching → frontend → worker by the below command and changing only the variable: SERVICES - (worker,history,matching,frontend)


docker run   -e TEMPORAL_BROADCAST_ADDRESS=localhost -e SERVICES=matching -e BIND_ON_IP=0.0.0.0 -e CASSANDRA_SEEDS=host.docker.internal -e CASSANDRA_USER=cassandra -e CASSANDRA_PASSWORD=cassandra -e CASSANDRA_PORT=9042 -e KEYSPACE=temporal  -e VISIBILITY_KEYSPACE=temporal_visibility   -e NUM_HISTORY_SHARDS=512  -e LOG_LEVEL=error  -e ENABLE_ES=true -e ES_SEEDS=<es-host> temporalio/server:latest

I am getting below error:


level":"error","ts":"2023-04-03T09:16:24.536Z","msg":"unable to bootstrap ringpop. retrying",
"service":"matching","error":"join duration of 42.528526009s exceeded max 30s",
"logging-call-at":"ringpop.go:109",
"stacktrace":"go.temporal.io/server/common/log.(*zapLogger).Error\n\t/home/builder/temporal/common/
log/zap_logger.go:150\ngo.temporal.io/server/common/membership.(*RingPop).bootstrap.func1\n\t/home/builder/temporal/common
/membership/ringpop.go:109\ngo.temporal.io/server/common/backoff.ThrottleRetry.func1\n\t/home/builder/temporal/common/backoff/
retry.go:175\ngo.temporal.io/server/common/backoff.ThrottleRetryContext\n\t/home/builder/temporal/common/backoff/retry.go:199
\ngo.temporal.io/server/common/backoff.ThrottleRetry\n\t/home/builder/temporal/common/backoff/retry.go:176\ngo.temporal.io/
server/common/membership.(*RingPop).bootstrap\n\t/home/builder/temporal/common/membership/ringpop.go:114\ngo.temporal.io
/server/common/membership.(*RingPop).Start\n\t/home/builder/temporal/common/membership/ringpop.go:84\ngo.temporal.io/server
/common/membership.(*ringpopMonitor).Start\n\t/home/builder/temporal/common/membership/rpMonitor.go:138\ngo.temporal.io/server
/common/resource.MembershipMonitorProvider.func1\n\t/home/builder/temporal/common/resource/fx.go:287\ngo.uber.org/fx/internal/
lifecycle.(*Lifecycle).runStartHook\n\t/go/pkg/mod/go.uber.org/fx@v1.18.2/internal/lifecycle/lifecycle.go:130\ngo.uber.org/fx
/internal/lifecycle.(*Lifecycle).Start\n\t/go/pkg/mod/go.uber.org/fx@v1.18.2/internal/lifecycle/lifecycle.go:95\ngo.uber.org
/fx.(*App).start\n\t/go/pkg/mod/go.uber.org/fx@v1.18.2/app.go:679\ngo.uber.org/fx.withTimeout.func1\n\t/go/pkg/mod/go.uber.org
/fx@v1.18.2/app.go:784"}

Can someone please tell me what is wrong with this command? Am I missing any configuration.

@ridwan.santoso If you have solved it already, please provide some hints.

This issue is resolved now. Remove env variable TEMPORAL_BROADCAST_ADDRESS=localhost.